私はGoogleのreCAPTCHAを統合しようとしていて、recaptcha_get_htmlをエコーしようとすると失敗するようです。それは未定義の関数エラーを伴います。私はどこにでも見てきたし、まっすぐ答えを得ることができない。私はPHPで半完成です。すべてを完全に理解していません。誰かが、どうやって欠けている機能を見つけることができるか説明してください。だから私の質問は、この機能をエコーする必要があるということですか?ここに私のコード:「recaptcha_get_html」をエコーする必要があるのはなぜですか?
<form class="" action="verify.php" method="post">
<input type="text" name="email" value=" enter email address" onFocus="if(this.value==' enter email address')this.value='';" style="height:18px; width:218px; color: #cccccc; border: 1 solid #000000; background-color: #5e5e5e; font: xx-small Verdana">
<br><br>
<?php
require_once('recaptchalib.php');
$publickey = "// Public Key";
echo recaptcha_get_html($publickey);
?>
<br>
<input type="submit" id="sendform" name='send' value=" send " style="cursor: hand; height:18px; border: 1 solid #000000; background-color:#5e5e5e; color: #cccccc; font: xx-small Verdana; font-weight:bold">
</form>
ありがとうございます。
最後に、クライアント側がJavaScriptに完全に基づいていることを確認しました。https://github.com/google/recaptcha/blob/master/examples/example-captcha.php –