RE: [PHP] Refresh-avoidance

From: Date: Tue, 27 Jun 2000 20:53:40 +0000
Subject: RE: [PHP] Refresh-avoidance
Groups: php.general 
Request: Send a blank email to php-general+get-3446@lists.php.net to get a copy of this message
You could before sending the form create the row (are you using a DBMS?) in the database and upon submit only update the row. Then they can submit as many times they like. This will also make it simple to use the same script if the user wants to change some data. (You will of course will get some empty rows using this method, but a simple script can clean that up for you.) /David -----Original Message----- From: David VanHorn To: php-general@lists.php.net Sent: 6/27/00 9:09 PM Subject: [PHP] Refresh-avoidance I have a form issue that's bugging me. As a part of a user signup, there is a page with a form. The user fills out the form and submits, and all is well, and he gets a confirmation screen, but if he refreshes the confirmation screen (this page contains the script that does the signup work) then a duplicate account is created. I know I can scan for dupes and abort, but is there a simpler way to avoid this? (Like a "refresh-killer"?) TIA -- www.SpamWhack.com A pre-emptive strike against spam A tornado is a lady whose skirts you do NOT want to look up! Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#3446) next »