Found a form-verified jquery on the web
Http://mrthink.net/jquery-form-valida ...
This effect is very good, the usage is very simple, support Ajax
But I don't know how to use Ajax PHP to verify that a user name exists
For help, I am not very familiar with Ajax.
Reply content:
Found a form-verified jquery on the web
Http://mrthink.net/jquery-form-valida ...
This effect is very good, the usage is very simple, support Ajax
But I don't know how to use Ajax PHP to verify that a user name exists
For help, I am not very familiar with Ajax.
An example of jquery's Ajax authentication username
Verify user Name JS method uname:: Enter the user name function Ajax_check_uname (uname) { var url = '/check/uname.php ';//Here is your PHP $.post ( Url,{uname:uname},function (data) { if (' success ' ==data) { return true;//on behalf of validation success! } else{ //verification failure how to deal with yourself to study it } ); PHP section if (isset ($_post[' uname ')) { //Secure data processing #TODO //Database query if exit (' success ') is not present; If present, return the error message you need //Maybe you should use the JSON format to study it specifically.