I’ve installed the ReCaptcha, configured my public and private key, and everything is fine until I type any answer on it, no matter if it’s good or wrong, it doesn’t even respond with the error there was occurred.
Here is my code:
require_once('recaptchalib.php');
$resp = recaptcha_check_answer ($config->privkey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
echo $resp->error;
}
I’ve found the answer after days of searching…
Here is the solution if someone is having a similar problem:
In your
rechaptchalib.phpchange:To the:
It was probably caused by the outdated PHP library, so it’ll be better for you to download the latest library also:
http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest
Thanks everyone.