Re: Double click problem

From: Date: Wed, 19 Mar 2008 16:43:06 +0000
Subject: Re: Double click problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-271824@lists.php.net to get a copy of this message
At 4:19 PM +0000 3/19/08, Richard Heyes wrote:
tedd wrote: // ... Your first (and the quickest by far) method to employ would be to disable the submit button using Jabbascript when the form is submitted. That will stop the vast majority of occurrences. You could also employ an intermediary page which actually does the card processing and when complete redirects to the "thank you" page. ie. Form --> "Please wait..." page --> "Thank you" page
That's in place. The person clicks the "confirm purchase" and they are taken to a "confirm and thank you page". The problem here is two fold -- 1) clicking the "confirm purchase"button twice, which I think js will stop; 2) and clicking the back-button which the token should stop. Now, I just need to develop a test for this. Sometime writing a test is more of a problem than writing the solution. Thanks for everyone's help. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#271824) next »