Re: [PHP] Preventing double-clicks

2006-08-13 Thread Gerry D
Jay, I use a technique to prevent hitting the "back" button and resubmitting data. I use a 2-script process, one with the form and "submit" button (I set a session var here), and a second form (the "action" script). The action script makes sure the session variable is set, processes the info, the

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-27 Thread John Meyer
Jay Blanchard wrote: [snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP meth

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread tedd
Hi gang: I don't know who originally asked, but if you generate and use a token with a session, you can prevent double posting (clicking). tedd -- http://sperling.com http://ancientstones.com http://earthsto

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Lester Caine
Jay Blanchard wrote: [snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP met

RE: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Jay Blanchard
[snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP method. Since the SESSION da

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Adam Zey
John Meyer wrote: Jay Blanchard wrote: [snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Isn't there a javascript method that you could use to accomplish the same thing? Either that, or o

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Larry Garfield
On Mon, June 26, 2006 2:05 pm, John Meyer said: > Jay Blanchard wrote: >> [snip] >> I am going to do some thinking (typing) out loud here because I need to >> come up with a solution to double-clicking on a form button issue. >> [/snip] >> > > Isn't there a javascript method that you could use to a

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread John Meyer
Jay Blanchard wrote: [snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Isn't there a javascript method that you could use to accomplish the same thing? Either that, or on the first click,

RE: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Jay Blanchard
[snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Because the data is contained in session variables this became an easy issue once I logiced it out /* * we have to find out if a double click

[PHP] Preventing double-clicks

2006-06-26 Thread Jay Blanchard
I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. The steps are; 1. Fill out form 2. Click 'Submit' 3. Data gets stored (including unique data and time stamp data in this casewhich should work out well) I