Forum Moderators: coopster

Message Too Old, No Replies

JS + PHP + MySql registration page

like gmail check new user on same page

         

Jaunty Edward

5:20 am on Dec 6, 2005 (gmt 0)

10+ Year Member



Hi,

my clients want a registration page that has check if username available and then proceed with the full long form...something very similar to gmail.

Can anyone tell me if there is any online tutorial or guidelines... I guess that requires solid JavaScript knowledge

Thanks
Bye

tomda

6:06 am on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look for "AJAX" - it uses Javascript, PHP/MYSQL.
Do some search on the web for some AJAX tutorial and you will easily find such link (e.g. search for "AJAX tutorial" OR "AJAX username").

How does it work?
Place an event handler in the form (onclick). Everytime the user fill the uisername field, it triggers the javascript function which open an "hidden" window, do a MYSQL request and return false/true to the main window.
True - Available
False - Already taken