JustinK101 Posted November 10, 2006 Share Posted November 10, 2006 I have seen more and more of this around. When you type in a desired username and move focus to the next field immediately it tells you if the username you entered already exists or is valid without hitting submit and refreshing the page. How is this done? I am thinking:When the page loads, they pull all usernames from mysql and store them in a javascript array. Is this even possible? How do you put all contents of a php array into a javascript array? Thanks. Link to comment https://forums.phpfreaks.com/topic/26787-realtime-username-validation-against-duplicates/ Share on other sites More sharing options...
Zane Posted November 10, 2006 Share Posted November 10, 2006 It's called AJAX.here's a basic tutorial on how to use ithttp://www.webpasties.com/xmlHttpRequest/just think of the zipcodes as your db of usernames Link to comment https://forums.phpfreaks.com/topic/26787-realtime-username-validation-against-duplicates/#findComment-122497 Share on other sites More sharing options...
JustinK101 Posted November 10, 2006 Author Share Posted November 10, 2006 Thank you zanus. Humm not trival, though I have heard about AJAX, time to dive into this further! Link to comment https://forums.phpfreaks.com/topic/26787-realtime-username-validation-against-duplicates/#findComment-122502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.