I'm trying to code reCaptcha into my website and am having some problems regenerating a new code when reCaptcha is entered incorrectly. I'm using the instructions on Google Developer page. This is the code I'm using in my Form: when someone enters a wrong captcha and click submit, I show them a text that "Captcha has been entered wrong. Go Back and correct it." The problem I'm having is that when user clicks the back button, Captcha doesn't regenerate and it never approved new entries anymore require_once('recaptchalib.php'); $publickey = "MY-PUBLIC-KEY"; // you got this from the signup page echo recaptcha_get_html($publickey); Code (markup): This is the code I'm using in my Success page: require_once('recaptchalib.php'); $privatekey = "MY-KEY"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); Code (markup): Thanks for the help
Rather then letting the users use the back button create a link for them to click which will reload the form page. Just make sure you store all of the posted data into sessions so they do not have to re enter all of the information again.