Help - Search - Members - Calendar
Full Version: Back to referring page
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
afallach
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
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
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
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
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.