Create a 'key' in the submission, something like...

<input type="hidden" name="form_start" value="<?=date();?>" />

Check that "form_start" does not already exist in the database, or, even better 
that form_generation and form_user carries a unique key. Then check for a SQL 
collision. That would be superior to a select and an insert.

Using linked relations and keys is your friend, as long as you have a database 
that supports these utilities.
 
Thank you,
Jarrett Meyer
http://jarrettmeyer.blogspot.com

No trees were harmed during this transmission; however, several electrons were 
terribly inconvenienced.

----- Original Message ----
From: sam rumaizan <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Thursday, April 5, 2007 7:15:36 PM
Subject: [PHP-WIN] duplicate entry

How do I disable Refresh and Back button. to Prevent duplicate entry



 

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to