#native_company# #native_desc#
#native_cta#

Progressbar y.php , use both x.php and y.php in same folder

By James Smith
on October 9, 2001

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>
&lt;html>
<br>&lt;head>
<br>&nbsp;&lt;title>Reading&lt;/title>
<br>&lt;/head>
<br>&lt;body onload='window.top.focus();' bgcolor='#COCOC0'>
<br>&lt;pre>
<br>&lt;?
<br>&nbsp;print ("&lt;center>&lt;font face='arial' size=2>Please wait while
Search Engine Generates Keywords for Christmas2000 Site&lt;/font>&lt;/center>");
<br>&nbsp;if ($i==10)
<br>&nbsp;{
<br>&nbsp; echo "&lt;br>&lt;br>&lt;table width=378 border=0 height=23 align=center
>
<br>&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>&lt;font face='arial' size=2>Opening Database&lt;/font>";
<br>&nbsp; echo "
<br>&nbsp; &lt;table border=0 align=center>
<br>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br>&nbsp;&nbsp;&nbsp; &lt;tr>&lt;td width='19' bgcolor='#000080'>&lt;/td>&lt;td
width='181' bgcolor='#FFFFFF'>&lt;/td>&lt;/tr>
<br>&nbsp;&nbsp;&nbsp; &lt;/table>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;input type=submit value='Cancel' onClick='window.close();'>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr>
<br>&nbsp; &lt;/table>
<br>&nbsp; ";
<br>&nbsp; echo "&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;}
<br>&nbsp;elseif ($i==5000)
<br>&nbsp;{
<br>&nbsp; echo "&lt;br>&lt;br>&lt;table width=378 border=0 height=23 align=center
>
<br>&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>&lt;font face='arial' size=2>Getting Company Information&lt;/font>";
<br>&nbsp; echo "
<br>&nbsp; &lt;table border=0 align=center>
<br>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br>&nbsp;&nbsp;&nbsp; &lt;tr>&lt;td width='38' bgcolor='#000080'>&lt;/td>&lt;td
width='162' bgcolor='#FFFFFF'>&lt;/td>&lt;/tr>
<br>&nbsp;&nbsp;&nbsp; &lt;/table>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;input type=submit value='Cancel' onClick='window.close();'>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr>
<br>&nbsp; &lt;/table>
<br>&nbsp; ";
<br>&nbsp; echo "&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;}
<br>&nbsp;elseif ($i==10000)
<br>&nbsp;{
<br>&nbsp; echo "&lt;br>&lt;br>&lt;table width=378 border=0 height=23 align=center
>
<br>&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>&lt;font face='arial' size=2>Collecting Product
Information&lt;/font>";
<br>&nbsp; echo "
<br>&nbsp; &lt;table border=0 align=center>
<br>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;table width='378' height='23' border='2' cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'>
<br>&nbsp;&nbsp;&nbsp; &lt;tr>&lt;td width='57' bgcolor='#000080'>&lt;/td>&lt;td
width='143' bgcolor='#FFFFFF'>&lt;/td>&lt;/tr>
<br>&nbsp;&nbsp;&nbsp; &lt;/table>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;input type=submit value='Cancel' onClick='window.close();'>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr>
<br>&nbsp; &lt;/table>
<br>&nbsp; ";
<br>&nbsp; echo "&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;}
<br>&nbsp;elseif ($i==15000)
<br>&nbsp;{
<br>&nbsp; echo "&lt;br>&lt;br>&lt;table width=378 border=0 height=23 align=center
>
<br>&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>&lt;font face='arial' size=2>Generating Keywords&lt;/font>";
<br>&nbsp; echo "
<br>&nbsp; &lt;table border=0 align=center>
<br>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br>&nbsp;&nbsp;&nbsp; &lt;tr>&lt;td width='90%' bgcolor='#000080'>&lt;/td>&lt;td
width='10%' bgcolor='#FFFFFF'>&lt;/td>&lt;/tr>
<br>&nbsp;&nbsp;&nbsp; &lt;/table>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;input type=submit value='Cancel' onClick='window.close();'>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr>
<br>&nbsp; &lt;/table>
<br>&nbsp; ";
<br>&nbsp; echo "&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;}
<br>&nbsp;elseif ($i==18000)
<br>&nbsp;{
<br>&nbsp;&nbsp; $username = "James Smith";
<br>&nbsp;&nbsp; $compname = "My Progressive Company";
<br>&nbsp;&nbsp; $compphone = "091-080-2275926";
<br>&nbsp;&nbsp; $email = "[email protected]";
<br>&nbsp;&nbsp; $Fromname = "Mail Man";
<br>&nbsp;&nbsp; $Fromaddress = $compname;
<br>&nbsp;&nbsp; $mailsubject = "Indicating the code execution";
<br>&nbsp;&nbsp; $msg = "Testing Progress Bar";
<p>&nbsp;&nbsp; if (mail($username." &lt;".$email.">", $mailsubject, $msg,
"From: ".$Fromname." &lt;".$Fromaddress.">nContent-Type: text/html; charset=iso-8859-1"))
<br>&nbsp;&nbsp; {
<p>&nbsp;&nbsp; }
<p>&nbsp; echo "&lt;br>&lt;br>&lt;table width=378 border=0 height=23 align=center
>
<br>&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>&lt;font face='arial' size=2>Sending Mail to Admin
about the progress&lt;/font>";
<br>&nbsp; echo "
<br>&nbsp; &lt;table border=0 align=center>
<br>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;table width=378 border=2 height=23 cellspacing=0
cellpadding=0 align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'
>
<br>&nbsp;&nbsp;&nbsp; &lt;tr>&lt;td width=100% bgcolor='#000080'>&lt;/td>&lt;/tr>
<br>&nbsp;&nbsp;&nbsp; &lt;/table>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp;&nbsp; &lt;td>
<br>&nbsp;&nbsp;&nbsp; &lt;input type=submit value='Cancel' onClick='window.close();'>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr>
<br>&nbsp; &lt;/table>
<br>&nbsp; ";
<br>&nbsp; echo "&lt;/td>&lt;/tr>&lt;/table>";
<br>&nbsp;}
<br>&nbsp;elseif ($i==20000)
<br>&nbsp;{
<br>&nbsp; ?>
<br>&nbsp; &lt;script language='javascript'>
<br>&nbsp;&nbsp; window.close();
<br>&nbsp; &lt;/script>
<br>&nbsp; &lt;?
<br>&nbsp; }
<br>&nbsp;?>
<br>&lt;/pre>
<br>&nbsp;&lt;/body>
<br>&lt;/html>
<br>&nbsp;
</body>
</html>