[jQuery] [validate]

[jQuery] [validate]


For remote validation, please show a code of check-email.php. I did
not find any example. My code:
$email=$_POST['email'];
$existing_mails=array('mail1@example.com','mail2@example.com');
if (in_array($email, $existing_mails)) {
    echo false;
} else {
    echo true;
}
does not work. Can you please show just small example of php code you
wrote for the demo mentioned here
http://docs.jquery.com/Plugins/Validation/Methods/remote#options