For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Re: [PHP-DB] Prevention for multiple submissions from the same form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Prevention for multiple submissions from the same form
OKi98

2007-10-05, 7:58 am

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com