Basically I have a gigantic form that would be a pain for anyone to have to re-fill. We have to implement reCaptcha to prevent spam bots.
I want to make it so that if the user enters the reCaptcha incorrectly, their form data is not lost.
The form, reCaptcha lib, and reCaptcha initialization code are in their own file titled Application.php
. This form POSTs to application_confirm.php
. application_confirm
includes another file which processes the form data into an email format and sends it to the admin.
Application.php
is required on another php page (ironically also titled application.php -- this is the one the user visits, and then the form html is included from the previously mentioned Application.php via require('content/Application.php')
I don't really know what I need to do to or where I need to place the captcha validity check -- any help much appreciated!