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?

  1. remote file must somefile.php
  2. 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

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 -