Storing current page and go-back to it later
Posted: Tue Dec 14, 2004 5:50 am
Hello All,
In the past I have had situations where I needed to move to another URL (with a form handling validation) and then go back to the original page.
Example
url1 - Link to url2 (i.e modify contact details)
url2 - contains form
url2 - posted values - validate - upkeep database - header (location=url).
To perform this I normally use $_SERVER['HTTP_REFERRER'] and passed that into url2. url2 retains that value through the post and knows when the form is correct to move to back.
I have recently been told that proxies can fool/confuse this methodology.
What are the preferred/alternative methods of achieving this functionality. No cookies/javascript/session saving unfortunately (due to legacy/customer requirements)
In the past I have had situations where I needed to move to another URL (with a form handling validation) and then go back to the original page.
Example
url1 - Link to url2 (i.e modify contact details)
url2 - contains form
url2 - posted values - validate - upkeep database - header (location=url).
To perform this I normally use $_SERVER['HTTP_REFERRER'] and passed that into url2. url2 retains that value through the post and knows when the form is correct to move to back.
I have recently been told that proxies can fool/confuse this methodology.
What are the preferred/alternative methods of achieving this functionality. No cookies/javascript/session saving unfortunately (due to legacy/customer requirements)