Hi all! I've been working on the validation for my web site, and I am currently trying to write a script so that if I have the following usernames in the username column of my MySQL table entitled "members":
-Jeff
-Pete
-Bob
That no one who is registering a name can take those names. If they tried to register an account with the username "Pete", they would get a JavaScript alert box that would return false to my validator script. What I tried to do was create an array of all of my site's usernames and then say "if the username you entered is in that array, display alert box and return false", but I couldn't get it just right. Please help!!! Thank you :D!