2013-04-11 2 views
0

최근에 reCaptcha를 설치했는데 eveything이 제대로 작동하지만 정확한 captcha를 입력하면 흰색 화면이 나타납니다. 왜 그런지 알고 있습니다. 어디 reCaptcha 말해.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 
} 
?> 

답변

0

당신은 else 문에 일이 무엇인지 둘 필요가 .

} else { 
    // Your code here to handle a successful verification 
}