Re: [PHP] Recognizing double clicks

2009-11-22 Thread Mark Kelly
Hi. On Sunday 22 Nov 2009 at 05:34 Skip Evans wrote: > It just dawned on me the button may be disabled right when > it's clicked to prevent a double submit? > > Is that doable? To mark a button as disabled after it has been clicked to prevent it being clicked twice just add some simple code in

Re: [PHP] Recognizing double clicks

2009-11-22 Thread tedd
At 11:30 PM -0600 11/21/09, Skip Evans wrote: Hey all, Every site I've ever stuck a credit card into said "only click once...". I just this requirement from a client. a.System should recognize a duplicated click, so the message in red "only click once" should be unnecessary. Is this doable

Re: [PHP] Recognizing double clicks

2009-11-22 Thread Phpster
Yep Bastien Sent from my iPod On Nov 22, 2009, at 12:34 AM, Skip Evans wrote: It just dawned on me the button may be disabled right when it's clicked to prevent a double submit? Is that doable? Skip Skip Evans wrote: Hey all, Every site I've ever stuck a credit card into said "only cli

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Hans Åhlin
Write a function that generate a unique form id and one that checks if it already has been submitted. Store data that the script sends after a submit has been done in the session array and if it is a re-submit just re-send the the data. 2009/11/22 Skip Evans : > Hey all, > > Every site I've ever s

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Manuel Lemos
Hello, on 11/22/2009 03:34 AM Skip Evans said the following: > It just dawned on me the button may be disabled right when it's clicked > to prevent a double submit? > > Is that doable? This forms generation class can do exactly that. It generates Javascript with form HTML that disables the form

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Skip Evans
It just dawned on me the button may be disabled right when it's clicked to prevent a double submit? Is that doable? Skip Skip Evans wrote: Hey all, Every site I've ever stuck a credit card into said "only click once...". I just this requirement from a client. a.System should recognize a

[PHP] Recognizing double clicks

2009-11-21 Thread Skip Evans
Hey all, Every site I've ever stuck a credit card into said "only click once...". I just this requirement from a client. a.System should recognize a duplicated click, so the message in red “only click once” should be unnecessary. Is this doable??? Has anyone on the list ever done this???