afallach
Mar 23 2007, 12:24 AM
I have a similar form on several pages. On Submit I'd like to flash a thank you page for a few seconds, then reload the referring page.
Of course I could put up separate thank-you pages, but I'm sure there must be a way to use one page and redirect the user back to the referring page. I've looked for examples to copy from, but no luck.
Thanks.
Darin McGrew
Mar 23 2007, 01:38 AM
You could put a hidden field in the form that tells the server-side program that processes the form which page the form came from. Then it can redirect back to that page.
afallach
Mar 23 2007, 10:01 AM
That's exactly what I want to do. How do I refer to the referring page? I haven't been able to find any help on that in the HTML references I have. (Not to say the information isn't THERE.)
Pattons3rd
Mar 23 2007, 11:36 AM
Just make a <input type="hidden" value="page2.html"> then have the PHP redirect to that page.
Shouldn't be too hard, but then again maybe.
Darin McGrew
Mar 23 2007, 11:44 AM
The best way would be a simple link. But see also the FAQ entry
How do I redirect someone to another page?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.