I was using the old ReCaptcha on my site but just upgrading to the new ReCaptcha i\'ve 3-4 different tutorials but it keeps failing and giving the fail error.
HTML>
You will need to create a public and a private key here.
Include this library to process the information on the server.
verify(
$_POST["g-recaptcha-response"],
$_SERVER["REMOTE_ADDR"]
);
if($r->isSuccess()){
echo 'success';
} else {
echo 'failed';
}
} else {
die('client failure, enable js or update browser');
}
} else {
die('form failure');
}
?>
ReCaptcha 2.0
This will say either success
or failed
depending on the input.