codeigniter - Remote method using jquery validation plugin -
possible duplicate:
help me 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?
- remote file must
somefile.php - the file may return "true" success , "false" error
you can see more details @ http://bassistance.de/jquery-plugins/jquery-plugin-validation/
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