Jump to content

check database and make sure username is available?


wmguk

Recommended Posts

Hey,

 

I have a standard input box for a username, and what I would like to do is when the user has entered his name, he moves on the the next field to fill out, and on doing so, runs a script which quickly checks the database to see if the name is in use and either returns a green tick or a red cross.

 

I know enough php to do the script to check, and show either the tick or cross, however I cannot work out how to perform the check in the middle of a form, i'm assuming it will be some kind of onchange, but how can i get the script to work live without having to submit the form?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.