after form submit go to previous page

What do you use as an ADDT replacement.
Give the pros and cons of the application and where to find it.
mrhankey
Posts: 45
Joined: 2010-07-31 18:20

after form submit go to previous page

Post by mrhankey » 2011-04-12 20:35

hi,

in my insert record wizard i have the option to specify a page after the form is submitted, however i want it to go to the previous page the user came from. as this will vary i cannot set a static page address.

what can i add in here to make it go to the previous page they came from?

many thanks

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: after form submit go to previous page

Post by Fred » 2011-04-13 15:15

Try using "$_SERVER['HTTP_REFERER']"

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: after form submit go to previous page

Post by Fred » 2011-04-14 09:35

Just remembered there is a forum posting on the old interakt site on how to implement the tng code to go back to the referrer page.
This would be the same method as what is used in the nextensio list.

Do us a favour and write an article on it would you?

Post Reply