Error found: .... echo "false"; } else { echo "true"; }
Do not response with boolean, string is expected. On 23 Feb., 18:13, Sonya <ayson...@googlemail.com> wrote: > 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('ma...@example.com','ma...@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 > herehttp://docs.jquery.com/Plugins/Validation/Methods/remote#options