[thelist] RE: thelist digest, Vol 1 #1237 - 31 msgs

Bruce Heerssen bheerssen at visualbridge.tv
Mon Apr 9 09:51:31 CDT 2001

> Message: 30
> Date: Sat, 07 Apr 2001 15:48:05 +0200
> To: thelist at lists.evolt.org
> From: Edwin Martin <e.j.martin at chello.nl>
> Subject: Re: [thelist] Java Script
> Reply-To: thelist at lists.evolt.org
> Josh,
> >Does anybody know how to break the back button?  I am doing credit card
> >processing and I don't want them to be able to click back after their card
> >has been charged.
> In the form-processing page you should make a redirect to an
> "thanks for you submission" page.
> This way, you can't "accidentally" resubmit the form.
> Bye,
> Edwin Martin.

That is a very good idea, but let me add that you could handle this server-side
also (do both). In your form, have a transaction number that you refer to when
processing the form. If the transaction has already been processed (which you
specifically check for), then offer an error page explaining this.

FYI, there is no real good way to completely disable a back button. All you can
hope for is using tricks like the above redirection and perhaps some javascript.
But those methods are not fool-proof.



More information about the thelist mailing list