Captcha check on submit click
-
Hello,
i have created simple html form for my client’s website. It has only one field and a submit button. We also need a reCaptcha, so i installed your plugin and added the recaptcha inside the form using:
echo apply_filters( ‘gglcptch_display_recaptcha’, ” );
Now comes the validation part. I would like recaptcha to be checked before the form is submitted. So, for example, user did not check the “I’m not the robot” checkbox and clicked the submit button. A message should come up on top of the form saying that captcha should be checked.
In your documentation i see a PHP code that does the validation, but do i need to add it to a separate page, check there and redirect a user back to my page with form or add it to the page with form and then, on click, to reload the page for validation?
Can the recaptcha validation be done on submit, using Javascript for example?
I hope that you can help out.
Thank you
- The topic ‘Captcha check on submit click’ is closed to new replies.