|
Posted by badr on 09/22/05 04:33
hi , Erwin Kloibhofer
Actually i like your Quistion and i start to think how it could be ,
but it is can be in different part
1- you need to calculate php web page time execution.
2- you have to biuld your own template that may diplay an error or
status of submitted data if it is correct or not or waiting message.
but there is alot of method to do so.
i can give small code to execution time
like this
<!-- put this at the top of the page -->
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
<!-- put other code and html in here -->
<!-- put this code at the bottom of the page -->
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
echo "This page was created in ".$totaltime." seconds";
or simply see this http://www.developerfusion.co.uk/show/2058/
so after you processing data you may need to check the time exeution
and and pass it to an HTML META tag as a parameter to display the
message that tell the user pleas wait a moment the META TAG may like
this
<META HTTP-EQUIV=\"Refresh\"
CONTENT=\"$X_sec; URL=$result_page\">
while $X_secis the time in second so the value of X will be got from
the above php code
and the HTML META tag may be reside on the top of the message template
inside the <head> tag .
and $result_page is the target page that go to next step if the data
are OK or the page that abort the process
test this page to for demo redirection
http://www.billstclair.com/html-redirect.html
---------------------------------------------------------------
anaother method you may need to create a function that display a
message and wait for data process by other function if the returned
value is valid you may go to next step or change the message if it is
invalid display error message or redirect the user to previuos page
---------------------------------------------------------------
i hope i give some Help
Regard
Navigation:
[Reply to this message]
|