Its even simpler on your redirect page, you dont even need PHP... simply use HTML for the redirect :-))
How to clear the screen ??
[deleted]
Now now, let's not make things too simple :-)
What about if you just made it look like you cleared the screen?
Once the end user presses submit (or whatever) simply don't output anything to the screen...perhaps let your php script do its work while the screen is blank and even maybe even a small sleep()? Just a thought.
[deleted]
The question is not "how do I print a blank screen"the question is: how do I print a "please wait" message, then clear the screen and print the real page.
Vincent, Your'rigth !
[deleted]
Did you find a solution yet?
Not at this time...
What about if you make the script look something like this (pseudo-code
<?php
echo "Please Wait"
do major processing job
echo "<META HTTP-EQUIV=REFRESH CONTENT=\"0;URL=goHereWhenFinished.php\">\n";
?>
that way, the refresh will not be printed until after the processing job is complete.
now i know this is very invalid HTML (it means you either closed the tag and then added a meta redirect, or never closed the html in the first place) but it does (i think) do what you want it to.
p.s. that meta http-equiv is a valid html operation, so you can use exactly that if you like
[deleted]
Something like that, but with a small change.
You don't know how long the task is going to take, so the waiting must be done by the script that does the work.
Just call this script/page, and have it set the refresh to 1 second or something.
Then print the "please wait" message in this script/page.
After 1 second, the browser will be redirected to the page that does all the work.
Now here's the tricky bit. The script that does all the work may not print anything untill it is finished.
The browser will keep the "old" page (please wait) on the screen untill it has received html data from the new page.
Why Not, But in this case how to stop the refresh ?
It seems that the browser will each 1 second refresh the page ?????!!!!
Or Is this wrong ?
[deleted]
The refresh should ofcourse refresh to the other page, the one that does the work before it prints the output.