私は最近 reCaptcha をセットアップしましたが、すべて正常に動作しますが、正しいキャプチャを入力すると、白い画面しか表示されません。
私はPHPをよく知らないだけで、何を入れればいいのかわからないのですが、誰か助けてください。phpコードは次のとおりです。
<?php
require_once('recaptchalib.php');
$privatekey = "YOUR_PRIVATE_KEY";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>