Version: 1
Type: Full Script
Category: Other
License: GNU General Public License
Description: for those who thought progress bar is a just a VB stuff and not a PHP , this code is the answer , thanks for all programmers for the response they have given to my codes in phpbuilder , try this u will like it use 2 files x.php and y.php (x.php calls y.php) ,
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Madhu">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Win98; U) [Netscape]">
<title>y</title>
</head>
<body>
<html>
<br><head>
<br> <title>Reading</title>
<br></head>
<br><body onload='window.top.focus();' bgcolor='#COCOC0'>
<br><pre>
<br><?
<br> print ("<center><font face='arial' size=2>Please wait while
Search Engine Generates Keywords for Christmas2000 Site</font></center>");
<br> if ($i==10)
<br> {
<br> echo "<br><br><table width=378 border=0 height=23 align=center
>
<br> <tr>
<br> <td><font face='arial' size=2>Opening Database</font>";
<br> echo "
<br> <table border=0 align=center>
<br> <tr>
<br> <td>
<br> <table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br> <tr><td width='19' bgcolor='#000080'></td><td
width='181' bgcolor='#FFFFFF'></td></tr>
<br> </table>
<br> </td>
<br> <td>
<br> <input type=submit value='Cancel' onClick='window.close();'>
<br> </td>
<br> </tr>
<br> </table>
<br> ";
<br> echo "</td></tr></table>";
<br> }
<br> elseif ($i==5000)
<br> {
<br> echo "<br><br><table width=378 border=0 height=23 align=center
>
<br> <tr>
<br> <td><font face='arial' size=2>Getting Company Information</font>";
<br> echo "
<br> <table border=0 align=center>
<br> <tr>
<br> <td>
<br> <table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br> <tr><td width='38' bgcolor='#000080'></td><td
width='162' bgcolor='#FFFFFF'></td></tr>
<br> </table>
<br> </td>
<br> <td>
<br> <input type=submit value='Cancel' onClick='window.close();'>
<br> </td>
<br> </tr>
<br> </table>
<br> ";
<br> echo "</td></tr></table>";
<br> }
<br> elseif ($i==10000)
<br> {
<br> echo "<br><br><table width=378 border=0 height=23 align=center
>
<br> <tr>
<br> <td><font face='arial' size=2>Collecting Product
Information</font>";
<br> echo "
<br> <table border=0 align=center>
<br> <tr>
<br> <td>
<br> <table width='378' height='23' border='2' cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'>
<br> <tr><td width='57' bgcolor='#000080'></td><td
width='143' bgcolor='#FFFFFF'></td></tr>
<br> </table>
<br> </td>
<br> <td>
<br> <input type=submit value='Cancel' onClick='window.close();'>
<br> </td>
<br> </tr>
<br> </table>
<br> ";
<br> echo "</td></tr></table>";
<br> }
<br> elseif ($i==15000)
<br> {
<br> echo "<br><br><table width=378 border=0 height=23 align=center
>
<br> <tr>
<br> <td><font face='arial' size=2>Generating Keywords</font>";
<br> echo "
<br> <table border=0 align=center>
<br> <tr>
<br> <td>
<br> <table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br> <tr><td width='90%' bgcolor='#000080'></td><td
width='10%' bgcolor='#FFFFFF'></td></tr>
<br> </table>
<br> </td>
<br> <td>
<br> <input type=submit value='Cancel' onClick='window.close();'>
<br> </td>
<br> </tr>
<br> </table>
<br> ";
<br> echo "</td></tr></table>";
<br> }
<br> elseif ($i==18000)
<br> {
<br> $username = "James Smith";
<br> $compname = "My Progressive Company";
<br> $compphone = "091-080-2275926";
<br> $email = "james_smith73@yahoo.com";
<br> $Fromname = "Mail Man";
<br> $Fromaddress = $compname;
<br> $mailsubject = "Indicating the code execution";
<br> $msg = "Testing Progress Bar";
<p> if (mail($username." <".$email.">", $mailsubject, $msg,
"From: ".$Fromname." <".$Fromaddress.">\nContent-Type: text/html; charset=iso-8859-1"))
<br> {
<p> }
<p> echo "<br><br><table width=378 border=0 height=23 align=center
>
<br> <tr>
<br> <td><font face='arial' size=2>Sending Mail to Admin
about the progress</font>";
<br> echo "
<br> <table border=0 align=center>
<br> <tr>
<br> <td>
<br> <table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br> <tr><td width=100% bgcolor='#000080'></td></tr>
<br> </table>
<br> </td>
<br> <td>
<br> <input type=submit value='Cancel' onClick='window.close();'>
<br> </td>
<br> </tr>
<br> </table>
<br> ";
<br> echo "</td></tr></table>";
<br> }
<br> elseif ($i==20000)
<br> {
<br> ?>
<br> <script language='javascript'>
<br> window.close();
<br> </script>
<br> <?
<br> }
<br> ?>
<br></pre>
<br> </body>
<br></html>
<br>
</body>
</html>