Re: Refresh-avoidance

From: Date: Tue, 27 Jun 2000 19:10:19 +0000
Subject: Re: Refresh-avoidance
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3413@lists.php.net to get a copy of this message
At 14:09 27/06/00 -0500, you wrote:
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 --
make your script recheck uniqe id ( login or name ) on your database before your script add on it, if found terminate it if no continue it -- Doubt whom you will, but never yourself. http://php.klik.or.id

« previous php.general (#3413) next »