Posts

Showing posts from August, 2015

Google reCAPTCHA with PHP tutorial

Image
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. <script src='https://www.google.com/recaptcha/api.js'></script> And to show the widget into your form you need to put this below contact form, comment form etc. < div class = "g-recaptcha" data-sitekey = "== Your site Key ==" >< / div > 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: Index.html < html >   < head >     < title > Google recapcha demo - Co