Login to your Google account and submit the form.
Once submit, Google will provide you following two information.
- Site key
- Secret key
Integrate it into your website.
To integrate it into your website you need to put it in client side as well as in Server side. In client HTML page you need to integrate this line before <HEAD> tag.
And to show the widget into your form you need to put this below contact form, comment form etc.
When the form get submit to Server, this script will send ‘g-recaptcha-response’ as a POST data. You need to verify it in order to see whether user has checked the Captcha or not.
Simple comment form with Google reCAPTCH:
This will generate this form.