The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Back to referring page, from a thank-you page
afallach
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
afallach
post 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.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Pattons3rd
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 08:35 AM