Re: Double Click
| From: | Joe Stump | Date: | Wed, 28 Feb 2001 06:22:34 +0000 |
| Subject: | Re: Double Click | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41956@lists.php.net to get a copy of this message | ||
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, 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 I do to prevent this?
>
> Thank you.
>
> Fabian Fabela
> fabian@vacagorda.com
> www.vacagorda.com
>
--
-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, joestump98@yahoo.com -o)
http://www.miester.org http://www.care2.com
/\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
-------------------------------------------------------------------------------