Prevention for multiple submissions from the same form
| From: | T K | Date: | Thu, 04 Oct 2007 11:09:01 +0000 |
| Subject: | Prevention for multiple submissions from the same form | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-44143@lists.php.net to get a copy of this message | ||
Hi,
I have a form with a button, which adds user inputted data into
database. I've been looking for a way to prevent users from pressing
the same button twice mistakingly.
I've learned that this is possible to make and send a unique id in
hidden input, and check if the id is used before database query is
issued. (PHP Cookbook [O'reilly]).
But, is there a way to make this happen without using database? It
would cool if I could only use HTML/JavaScript/CSS.
Tek.