Re: avoiding user using back button-need to re-route

From: Date: Thu, 10 Feb 2005 19:40:40 +0000
Subject: Re: avoiding user using back button-need to re-route
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208471@lists.php.net to get a copy of this message
[snip] is there a way to "route" from my second last step to my last one with a php page between them that will intercept any back press and also will "redirect" when the process goes from the second last step to the last step. If the user clicks back from the last page it must then determine that he is going back and redirect to an error page or a login page. [/snip] On the processing page you could put something like; if($_SERVER['HTTP_REFERER'] != 'myFormPage.php'){ header("Location: YouGotHereWrong.php"); } alex hogan

« previous php.general (#208471) next »