You may use a hidden field wich tells you what current
step is. If it is lower that your current page expects to be,
you may take the proper action (here the most simple, die() )
Look at this simple script:

==============SCRIPT BEGINS HERE
<?

if ( isset( $step ) )
  if ( $step == 2 )    // =>here you can put "<=2" , as you need..
    die ( "Error, we've been already here!" ) ;

?>

....
<FORM>
<INPUT TYPE=HIDDEN NAME="step" VALUE=1>
..
</FORM>
....
===============SCRIPT ENDS HERE

>Hi Guys,
>
>I know everywhere it says that it is not possible to actually disable =
>the back button, and people have offered some solutions that have not =
>worked for me, this is why I am emailing this list.
>I have a form which displays the same page with new content (controlled =
>by a counter) in a loop until an exit point is reached.  When the user =
>clicks back on the browser the counter still increments and the screen =
>continues like the user pressed the continue button (which is the =
>process I want the user to take).  The problem is the user did not make =
>a selection and this is where the problem lies (it takes the default, =
>which throws the whole process out of whack).
>
>The question I am asking is how can I prevent the user trying to go =
>back?  Is there any code out there which can counter this action (and =
>not cause my counter to increment, thus moving the user to the next =
>screen)?  Is there any way to detect that the back button/option has =
>been selected and display a "warning" type page before going back to =
>where the user is?  The forward counter action does not really fix my =
>problem.
>
>Thanks,
>Michael.
>
>Chief Information Officer,
>RealGM, Inc.
>http://www.realgm.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to