You probably want to establish authentication based on a combination of user
name and password rather than just username .. unless your username is
something like an email or johndoe (AT) yourcompany (DOT) com .. the likelihood of a
duplicate of that username is highly unlikely.
You set up a routine that compares the username in the form with the
username in the database and response.write "this username is already taken
if txtusername (form variable) is like username (database table value).
--
Nancy Gill
Team Macromedia Member: Dreamweaver MX/UltraDev
http://www.macromedia.com/go/team/
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
"Eaglemon" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
I have a website (http://www.dragonearthonline.com) for an online game.
Lets
say someone runs into a person that they think they know because of the
username. What if there are multiple people who have that username? This
could
turn out into multiple things... How do I check if the username the user
wants
is already taken, and display a message that says "This username is
already
taken."? |