Re: Opening a new page when done
| From: | Richard S. Crawford | Date: | Wed, 24 Oct 2001 14:28:45 +0000 |
| Subject: | Re: Opening a new page when done | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72104@lists.php.net to get a copy of this message | ||
Assuming you don't output anything else to a web page:
header ("Location: index.html");
should do the trick if you put it at the end of the program. Be warned, though, that if you output anything to the browser at all, the header function will not work.
Good luck!
At 06:39 AM 10/24/2001, Roy W wrote:
I have several scripts that when you complete a form it executes a PHP script. At the end of each script I have a simple statement saying it's done and then a place to hyperlink back to a given page: PRINT "Process complete. <a href=\"index.html\">Click here</a> to continue"; But what I really wanna do is just have the script code execute and when its all done - just take the user automatically to "index.html" or some other page. I know there's a command but cant seem to find it. Thought it might be "include()" but couldn't figure out my syntax Ideas? THANKS!!! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netSliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"