在网站中使用reCAPTCHA PHP插件的最佳简单方法



我已经使用了谷歌api和下面的代码来获得验证码在我的网站上,但无法在php网站上得到它。我使用了下面的代码

<html><body>
<?
require_once ("recaptchalib.php");
// get a key at http://www.google.com/recaptcha/mailhide/apikey
$mailhide_pubkey = '';
$mailhide_privkey = '';
?>
The Mailhide encoding of example@example.com is
<?
echo recaptcha_mailhide_html ($mailhide_pubkey,
                              $mailhide_privkey,
                              "example@example.com");
?>.
<br>
The url for the email is:
<?
echo recaptcha_mailhide_url ($mailhide_pubkey,
                             $mailhide_privkey,
                             "example@example.com");
?>
<br>
</body></html>

请告诉我在Php网站上获得验证码的简单和最好的步骤。

不要采用这种方法,它有点难以管理。

如果你只是简单地想整合谷歌新验证码,那么只需在这里注册

生成一个密钥并在表单中管理它。你可以点击下面的链接了解更多细节。

Google reCaptcha Using PHP |仅2步集成

最新更新