Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread tedd
At 7:21 AM + 3/22/08, Lester Caine wrote: tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple

Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread tedd
At 4:23 PM -0700 3/21/08, Jim Lucas wrote: It would require a little JS, but you could use the onUnload feature and pop up a warning that would tell them the problem(s) of leaving this page. Then use the confirm() method from JS to either allow or deny them to leave the current page. I don't

Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread Lester Caine
tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use javascrip

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Jim Lucas
tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use javascrip

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Eric Butera
On Fri, Mar 21, 2008 at 2:24 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > This is probably trivial for most of you, but here's my solution to > the problem I presented earlier. > > The problem was, I just wanted to be certain that if a use clicked a > button that they could only do it onc

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread tedd
Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use javascript, but I want

Re: [PHP] Double click problem

2008-03-20 Thread Lamp Lists
- Original Message From: Eric Butera <[EMAIL PROTECTED]> To: Lamp Lists <[EMAIL PROTECTED]> Cc: tedd <[EMAIL PROTECTED]>; php-general@lists.php.net Sent: Thursday, March 20, 2008 11:00:19 AM Subject: Re: [PHP] Double click problem On Thu, Mar 20, 2008 at 10:39 AM,

Re: [PHP] Double click problem

2008-03-20 Thread Eric Butera
fer page - which will send him back to thankyou page > ;) > > -ll > > > > > > - Original Message > From: tedd <[EMAIL PROTECTED]> > To: php-general@lists.php.net > Sent: Wednesday, March 19, 2008 11:43:06 AM > Subject: Re: [PHP] Double click

Re: [PHP] Double click problem

2008-03-20 Thread Lamp Lists
dnesday, March 19, 2008 11:43:06 AM Subject: Re: [PHP] Double click problem At 4:19 PM + 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 &g

Re: [PHP] Double click problem

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 12:44 PM, Jim Lucas <[EMAIL PROTECTED]> 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 initia

Re: [PHP] Double click problem

2008-03-19 Thread Jim Lucas
Daniel Brown wrote: On Wed, Mar 19, 2008 at 12:01 PM, Eric Butera <[EMAIL PROTECTED]> wrote: Unique form tokens. Generate a token when the form is displayed and save that value in the session. Then on post check it and remove it. Then if they re-submit it will not exist therefore be inval

Re: [PHP] Double click problem

2008-03-19 Thread tedd
At 4:19 PM + 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 pa

Re: [PHP] Double click problem

2008-03-19 Thread Richard Heyes
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 w

RE: [PHP] Double click problem

2008-03-19 Thread tedd
At 4:00 PM + 3/19/08, Edward Kay wrote: Oh, I'd also add a bit of text near the button saying: "Please click this button ONCE only. Clicking again may result in your credit card being billed twice." I'm always much more precise with my clicking when such warnings are displayed :) That's a

Re: [PHP] Double click problem

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 12:01 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > Unique form tokens. > > Generate a token when the form is displayed and save that value in the > session. > > Then on post check it and remove it. Then if they re-submit it will > not exist therefore be invalid.

Re: [PHP] Double click problem

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 11:48 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded th

Re: [PHP] Double click problem

2008-03-19 Thread Eric Butera
On Wed, Mar 19, 2008 at 11:48 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded th

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
> Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded the product. Everything works, but it takes a little time to > check the

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
> Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded the product. Everything works, but it takes a little time to > check the

Re: [PHP] Double click problem

2008-03-19 Thread Stut
tedd wrote: I have a situation where users can purchase stuff online. In the last step in the process, the user clicks a "confirm purchase" button and their credit card is checked and if it's valid, they are awarded the product. Everything works, but it takes a little time to check the credit

Re: [PHP] Double click problem

2008-03-19 Thread Dan Joseph
On Wed, Mar 19, 2008 at 11:48 AM, tedd <[EMAIL PROTECTED]> wrote: > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded the product. Everything works, but it takes a little time to > check the credit

Re: [PHP] Double Click

2001-03-02 Thread Yasuo Ohgaki
ase 'show_form': $HTTP_SESSION_VAR['FORM_DATA_SENT'] = false; // show form break; } Regards, Yasuo Ohgaki > > -Original Message- > From: John Huggins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 3:04 PM > To: Manuel Lemos; [EMAIL

Re: [PHP] Double Click

2001-03-01 Thread Hrishi
Wednesday, February 28, 2001 3:04 PM > To: Manuel Lemos; [EMAIL PROTECTED] > Subject: RE: [PHP] Double Click > > > If you are lucky and are feeding this form data to a database, you can > create a unique hash field from other fields that would not change from > click 1 to cl

RE: [PHP] Double Click

2001-03-01 Thread Brinkman, Theodore
hn Huggins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 3:04 PM To: Manuel Lemos; [EMAIL PROTECTED] Subject: RE: [PHP] Double Click If you are lucky and are feeding this form data to a database, you can create a unique hash field from other fields that would not change from click 1

RE: [PHP] Double Click

2001-02-28 Thread John Huggins
not tell the double clicker that had an error; Just silently ignore their second request. > -Original Message- > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 2:55 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Double Click > > &

Re: [PHP] Double Click

2001-02-28 Thread Manuel Lemos
Hello Fabian, On 28-Feb-01 03:01:02, you wrote: >Hi, >I have a page, and when I have to add a product I use a form, many people are >used to make double click in every task, so when the product is sent with a >double click in the send button, the program send it twice to the data base. >What

RE: [PHP] Double Click

2001-02-28 Thread Ovidiu EFTIMIE
Use something like this var submitcount=0; function checkSubmit(s) if (submitcount == 0) { submitcount++; s.value = " Sending... "; return true; } else { alert("This form has already been submitted. Thanks!"); return false; }

Re: [PHP] Double Click

2001-02-27 Thread Joe Stump
Make the id field on the db entry unique - the second query will fail. You should also be doing error checking on whether or not the record exists already. --Joe On Wed, Feb 28, 2001 at 12:15:38AM -0600, Fabian Fabela wrote: > Hi, > > I have a page, and when I have to add a product I use a for