RE: [PHP] Refresh (F5) adds another SQL record.

From: Date: Tue, 17 May 2005 22:26:41 +0000
Subject: RE: [PHP] Refresh (F5) adds another SQL record.
Groups: php.general 
Request: Send a blank email to php-general+get-215419@lists.php.net to get a copy of this message
[snip] 6) User clicks refresh. 7) Another record is added, same data except auto-increment field. How do I prevent these last two steps, or at least prevent a record from being added when refresh is clicked? [/snip] Test for the existence (SELECT statement with the variables therein) of the record even on the first try, if it exists, do not add (ever again), if it does not exist do the insert

« previous php.general (#215419) next »