wmguk Posted May 29, 2008 Share Posted May 29, 2008 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? Link to comment https://forums.phpfreaks.com/topic/107784-check-database-and-make-sure-username-is-available/ Share on other sites More sharing options...
BlueSkyIS Posted May 29, 2008 Share Posted May 29, 2008 Ajax. combination of javascript (onchange is correct) calling PHP and PHP returning information to javascript. Link to comment https://forums.phpfreaks.com/topic/107784-check-database-and-make-sure-username-is-available/#findComment-552483 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.