O'Reilly Forums: Rnsignup.php - Username Check Before Writing To Database - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rnsignup.php - Username Check Before Writing To Database "That username already exists" does not display

#1 User is offline   Rob333 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 18-September 12

Posted 18 September 2012 - 08:44 PM

Don't know if anybody encountered this but in the sample rnsignup.php.

Near the end off the code there is a section that checks if values have been entered for $user and $pass then displays the message "Not all fields were entered" which works fine.

The next check is whether the username already exists in the rnmembers table and if it does "That username already exists" should be returned; however, this doesn't seem to work. When I try to enter a username that I know already exists I only get the message "Account created" and when I check the table it appears that no duplicate account was created.

The question is why the message "That username already exists" is not displaying?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users