Open GoogleCodeExporter opened 8 years ago
Take a look at the elements.php example file that's included in the project's
download. reCaptcha is validated within the isValid static method for you.
Original comment by ajporterfield@gmail.com
on 22 Jul 2012 at 1:58
In a sense auto? I can't understand.
Original comment by yusufali...@gmail.com
on 22 Jul 2012 at 3:22
Have you looked at the php source of the elements.php example file yet? If you
call isValid after the form has been submitted, it will take care of the
reCaptcha validation. If isValid returns false, you need to redirect back to
your form. The errors will be automatically display to your user upon coming
back to the form.
Original comment by ajporterfield@gmail.com
on 22 Jul 2012 at 3:33
[deleted comment]
Thank you bro.
if(Form::isValid($_POST["form"])) {
/*The form's submitted data has been validated. Your script can now proceed with any
further processing required.*/
header("Location: " . $_SERVER["PHP_SELF"]);
}
Original comment by yusufali...@gmail.com
on 25 Jul 2012 at 9:43
Original issue reported on code.google.com by
yusufali...@gmail.com
on 22 Jul 2012 at 1:52