Page 1 of 1

after form submit go to previous page

Posted: 2011-04-12 20:35
by mrhankey
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

Re: after form submit go to previous page

Posted: 2011-04-13 15:15
by Fred
Try using "$_SERVER['HTTP_REFERER']"

Re: after form submit go to previous page

Posted: 2011-04-14 09:35
by Fred
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?