Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. The reCAPTCHA wasn't entered correctly. Go back and try it again.(reCAPTCHA said: incorrect-captcha-sol)
  2.  
  3. <?php
  4. if (isset($_POST['submit'])){
  5. require_once('recaptchalib.php');
  6. $privatekey = "XXXXXXXXXXXXXX";
  7. $resp = recaptcha_check_answer ($privatekey,
  8. $_SERVER["REMOTE_ADDR"],
  9. $_POST["recaptcha_challenge_field"],
  10. $_POST["recaptcha_response_field"]);
  11.  
  12. if (!$resp->is_valid) {
  13. // What happens when the CAPTCHA was entered incorrectly
  14. die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
  15. "(reCAPTCHA said: " . $resp->error . ")");
  16. } else {
  17. // Your code here to handle a successful verification
  18. }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement