Back to referring page, from a thank-you page |
Back to referring page, from a thank-you page |
afallach |
Mar 23 2007, 12:24 AM
Post
#1
|
Group: Members Posts: 4 Joined: 20-March 07 Member No.: 2,274 |
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
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
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
Post
#3
|
Group: Members Posts: 4 Joined: 20-March 07 Member No.: 2,274 |
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
Post
#4
|
Newbie Group: Members Posts: 13 Joined: 19-March 07 Member No.: 2,250 |
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
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
The best way would be a simple link. But see also the FAQ entry How do I redirect someone to another page?
|
Lo-Fi Version | Time is now: 19th April 2024 - 08:35 AM |