php - Help me with remote method of jquery validation plugin -
can me jquery remote: validation method. mean got how use in jquery part. can tell me server side part. using php , codeigniter it. consider example below:
$("#myform").validate({ rules: { email: { required: true, email: true, remote: "validate/check" } } }); so can tell me what's code check function in validate controller?
first have understand remote file must me php file say, test.php.
you may create 1 file returns "true" succes , "false" error.
you can see more details here
the plugin validates input email format. also, can see simple email validation using php here;
http://www.totallyphp.co.uk/code/validate_an_email_address_using_regular_expressions.htm
Comments
Post a Comment