RE: [PHP] stopping repeated posts to a Bulletin Board

From: Date: Tue, 17 Sep 2002 14:57:43 +0000
Subject: RE: [PHP] stopping repeated posts to a Bulletin Board
Groups: php.general 
Request: Send a blank email to php-general+get-116636@lists.php.net to get a copy of this message
Hi, > What is the best way to avoid the "repeated comment/post" > syndrome caused by the user clicking the submit button one > too many times The canonical way is to attach a token to the form (a random number will usually do) and insert that into the table along with the comment/post, after checking first to make sure that a row containing this token isn't already in the table. Cheers Jon

« previous php.general (#116636) next »