...

View Full Version : Checking if username exists



kaisellgren
10-12-2006, 06:01 AM
Hi,

I have a registration form. I would like it to whether the writtern username exists or not. When user have typed blahblah it should connect to a PHP script and get info about "does the username exist".

How would I exactly do that?

Philip M
10-12-2006, 08:04 AM
The form which includes the user name has to be submitted in order to access a database on the server containing a list of user names. The best you can do with JavaScript is to set a cookie containing the user's name and then match it but of course the user can disable or delete this.

felgall
10-12-2006, 08:13 AM
To connect to the server to check whether the username is available requires adding Ajax code to the javascript that calls a server side script that does the checking.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum