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

http://www.builderau.com.au/program/php/soa/simplify-e-mail-validation-routines-with-php/0,339028448,339221002,00.htm


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -