Re: Prevention for multiple submissions from the same form
| From: | OKi98 | Date: | Fri, 05 Oct 2007 08:34:50 +0000 |
| Subject: | Re: Prevention for multiple submissions from the same form | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44159@lists.php.net to get a copy of this message | ||
T K napsal(a):
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]). Why? You should always ensure that only unique data are inserted into database. This is not just about multiple submissions. Visitor can submit form then forgets about that so he goes back and submits the same thing again.