Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validate Username

Status
Not open for further replies.

columbo1977

Programmer
May 9, 2006
49
GB
Hi

Can anyone help. Attached is the registration form from a site I am building, the form is validated and the passwords are checked but I now need to check to make sure no-one enters the same username in the database.

Can anyone tell me how, as you can see from the function validuser() I have already been trying to do this.

Site has been built with PHP and MySQL.

Click on the link below for the registration form.


Thanks

Columbo1977
 
Ok thanks, I have posted it in the right forum? i thought it was a javascript function.

Cheers

Columbo1977
 
You can do this with Javascript if you wish to allow everyone who visits the site to see all the user IDs in your database. Otherwise, you need to handle it server side, like BRPS said.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top