Re: Back Button Dilemma's

From: Date: Tue, 10 Apr 2001 07:18:20 +0000
Subject: Re: Back Button Dilemma's
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47976@lists.php.net to get a copy of this message
If you know javascript, you might try something like history.go(20) on each page. It _should_ cause the user to catapult forward in their history list each time they load the page. If they haven't used their back button, then having javascript "push" their forward button should do nothing. That keeps them from going back and changing a selection. The other way is when someone submits the page, save that data so that if the person resubmits the page not only are the changes ignored, but they are redirected to the page they should be on. Or ideally you can just make the whole thing in one php page. When someone submits their info, save it and give them the next form. (the best way to do it) Or you could just use the good ole fashion flash applet, which breaks most people's back buttons :) (that can be gotten around, of course, and only happens on some peoples systems) -- Plutarck Should be working on something... ...but forgot what it was. ""RealGM"" <webmaster@realgm.com> wrote in message news:009901c0c17f$ed066300$9d14c9cb@m3g7o5... 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

« previous php.general (#47976) next »