I have a form in which users create their own login name. The code for
storing the login name they created does something like the following:

$userlogin is the name the user typed in the form
$sql = "select loginname from login where loginname='$userlogin'";
if ($num > 0)
   echo "Sorry, that login name is already taken, Try another";
   shows form again;
   insert new record into database;
   echo "okay, your new account is added";

I am wondering if it is possible that two people could hit the submit button
at the exact same time with the same login name so that the same login name
could get entered twice? Seems unlikely that this would happen by accident,
but is this something a hacker could do on purpose?



PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to