Re: Double click problem

From: Date: Wed, 19 Mar 2008 16:52:39 +0000
Subject: Re: Double click problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-271827@lists.php.net to get a copy of this message
On Wed, Mar 19, 2008 at 12:44 PM, Jim Lucas <lists@cmsws.com> wrote: > Daniel Brown wrote: > > > > I like Eric's method better than the timestamp method I proposed. > > Much cleaner and easier to institute, and I'd hazard a guess at it > > being more reliable as well. > > > > The initial problem that I see with it would be that if the user clicks the > submit button a second time, the first transaction is canceled. If the process > takes a long time, maybe the time period for the server to get the approval has > already passed, but the server is still doing stuff but not redirected the > person to the success page. At this point, the user has purchased the item > successfully, but they did see the success page. So they repeat the process, > over and over and over... Right, but I meant that as a replacement to my "backup" solution. As a backup for disabling the button using JavaScript, as mentioned. Sorry, should've clarified that. Good catch, Jim. -- </Daniel P. Brown> Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283

« previous php.general (#271827) next »