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

时间:2016-09-12 05:16:41

标签: php recaptcha

我使用google 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网站上获取Captcha的简单和最佳步骤。

1 个答案:

答案 0 :(得分:1)

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

如果您只是想整合Google New reCaptcha,那么只需register here

生成一个密钥并在表单中进行管理。您可以按照以下链接获取更多详细信息。

Google reCaptcha Using PHP | Only 2 Step Integration

相关问题