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

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

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-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

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 once.

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

Re: [PHP] Double click problem

2008-03-20 Thread Lamp Lists
] 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 submitted. That will stop the vast majority of occurrences. You could also

Re: [PHP] Double click problem

2008-03-20 Thread Eric Butera
PROTECTED] To: php-general@lists.php.net Sent: Wednesday, 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

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, Lamp Lists [EMAIL PROTECTED

[PHP] Double click problem

2008-03-19 Thread tedd
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 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 card.

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 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 credit

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 credit

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 the product.

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 the product.

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. I like

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

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

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

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

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 initial problem that

Re: [PHP] Double Click

2001-03-02 Thread Yasuo Ohgaki
; } Regards, Yasuo Ohgaki -Original Message- From: John 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

RE: [PHP] Double Click

2001-03-01 Thread Brinkman, Theodore
[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 to click 2

Re: [PHP] Double Click

2001-03-01 Thread Hrishi
inal Message- From: John 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 fie

RE: [PHP] Double Click

2001-02-28 Thread Ovidiu EFTIMIE
Ovidiu -Original Message- From: Fabian Fabela [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: [PHP] Double Click 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 ta

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 can

RE: [PHP] Double Click

2001-02-28 Thread John Huggins
is to 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 Hello Fabian, On 28-Feb-01

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 form,