Re: Disabling the Back Button?
| From: | Hugh Bothwell | Date: | Sun, 31 Mar 2002 01:56:53 +0000 |
| Subject: | Re: Disabling the Back Button? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90844@lists.php.net to get a copy of this message | ||
You're asking the wrong question.
'Disabling the back button' changes the expected behaviour
of the browser and as such is an *EVIL* thing to do, roughly
on par with driving the wrong way down one-way streets or
spray-painting your neighbor's cat.
What you want is to 'prevent the user from accessing or
resubmitting the form after it has been submitted', and
the question is the answer: when the form is submitted set
a flag; check the flag before showing a page or accepting
a submission.
"David Johansen" <daveisfera@yahoo.com> wrote in message
news:20020331002136.74638.qmail@pb1.pair.com...
> OK, I basically just want to make it so that the user can't go back once
> they're done with an application form that I'm working on. I don't case if
> they go back in the middle and my page handles that just fine, but I want
> them to not be able to go back when they're all done. Is there some way
that
> I can do this? Thanks,