jshuter / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

how to use recaptcha? #171

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want to use my forms with validate recaptcha code. But I can't find anything 
about validating captcha code. 

I'm waiting article about validating captcha.

Original issue reported on code.google.com by yusufali...@gmail.com on 22 Jul 2012 at 1:52

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
In a sense auto? I can't understand.

Original comment by yusufali...@gmail.com on 22 Jul 2012 at 3:22

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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