As stated in the link, output the $_POST array to check whether all values have been set correctly. Also show output for your REMOTE_ADDR.
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
It shows exactly how to do it in the link you posted, just copy/paste that to your verify.php
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
As you can plainly see, [recaptcha_challenge_field] and [recaptcha_response_field] are missing, causing the check to fail. There most be something wrong with the form, it is not posting everything you need.
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Try to get just the recaptcha working, without all the other stuff. Make sure that works, before you proceed. (I have no access to a php server at work, nor do I have a recaptcha account.)
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
It can be a dozen of things. Make a page that only outputs the recaptcha, without any js, and make sure that does what it should.
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Then it must be something on the page that is interfering, some javascript most likely.
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Instead of header("Location: http://www.google.com"); I would do something like this header("Location: index.php?error=recaptcha");
Assuming index.php is the file you have your form in. Somewhere on your page you can check if ($_GET['error'] == 'recaptcha') and output a custom message in addition to your form.
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875