Re: submit
| From: | mwaples at optusnet dot com dot au | Date: | Thu, 21 Dec 2000 13:07:41 +0000 |
| Subject: | Re: submit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31428@lists.php.net to get a copy of this message | ||
andre wrote:
>
> hi,
>
> weve got an orderform with the submit button
>
> now many users hit this button twice or three times
> ( cause they are to unpatient to wait or server to replay )
>
> and so we recieve the same data up to three times
>
> anyone of you got a solution for this ?
>
> how to prevent them from klicking severall times ?
>
> ======
>
> we think of a small javascript which checks if the form
> was submitted but whats with javasript off ?
>
you could uses sessions - so just check that they haven't inserted data
with same variables twice (maybe compare times too) - use the session to
identify them.
Not perfect but will stop duplicate data.
I'm sure theres other ways sessions could help prevent this too.