RE: [PHP] stopping back button
| From: | Philip Olson | Date: | Mon, 30 Oct 2000 17:10:57 +0000 |
| Subject: | RE: [PHP] stopping back button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22709@lists.php.net to get a copy of this message | ||
See :
Q311 How do I disable the "Back" button of a browser?
http://www.developer.irt.org/script/311.htm
Also, see :
Google search : javascript "back button" disable
http://www.google.com/search?q=javascript+%22back+button%22+disable&num=50&hl=en&lr=&safe=off
Some interesting notes :
Slashdot Discussion : Web Site "Lock-In"
http://slashdot.org/articles/00/07/07/202235.shtml
List of sites that do annoying "tricks" like this :
(you will find yourself here and made fun of :)
http://www.top9.com/lockin.html
Now if you don't want the user to go back resubmit, check to see if data
already exists - do so depending on how it is stored. How is it stored?
Or is it email. Try hidden inputs? Anyway, Disabling features such
as "back" button or "toolbars" is not the answer and is actually imho
evil.)
Regards,
Philip
--
be outside the box.
On Mon, 30 Oct 2000, Jeff Demel wrote:
> Yeah, I didn't think of that. The only drawback is if the user knows that
> you can use the keyboard's backspace key (IE) when the back button is not
> available. I think there's a keyboard command in Netscape that does the
> same thing, although I don't know what it is (maybe "ALT+<-" ?). Maybe use
> META Refresh or some code to force the page to refresh and not come out of
> cache? Not really sure if that would work.
>
> -Jeff
>
>
> -----Original Message-----
> From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt
> Sent: Monday, October 30, 2000 10:46 AM
> To: Jeff Demel
> Subject: Re: [PHP] stopping back button
>
>
> This may not work 100% since browsers might display a locally cached
> version of the previous page. One possible preventative measure would be
> to open the application in a new browser window without the toolbar
> buttons.
>
> Jeff Demel wrote:
> >
> > To tell you the truth, you shouldn't disable the back button even if you
> > could, which I'm not sure you can. Try using session vars, cookies, or
> > something like that for checking where your user is in the process and
> > directing them to the correct form.
> >
> > HTH
> >
> > -Jeff
> >
> > -----Original Message-----
> > From: Road Runner [mailto:davisr004@hawaii.rr.com]
> > Sent: Monday, October 30, 2000 4:10 AM
> > To: php-general@lists.php.net
> > Subject: [PHP] stopping back button
> >
> > I have a script that has several forms that return to the same file with
> > PHP_SELF How can I keep users from using the back button and re-entering
> > data into a form that they have already used once?
> >
> > thanks in advance,
> >
> > rodney
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Monte Ohrt <monte@ispi.net>
> http://www.ispi.net/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>