The best easy way to use reCAPTCHA PHP Plugin on the site

I used google api and the code below to get captcha on my website, but could not get it on php website. I used below code

<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>

Please tell me the simple and best steps to get Captcha on the Php website.

+4
source share
1 answer

Do not follow this method, which is difficult for you to cope with.

If you just want to integrate Google New reCaptcha, just sign up here

And create a secret key and manage it in your form. For more detailed information you can follow the link below.

Google reCaptcha Using PHP | 2-step integration only

+1
source

Source: https://habr.com/ru/post/1654307/


All Articles