Thứ Bảy, 19 tháng 11, 2011

How to Add Captcha in Php Form

Adding CAPTCHA to your form protects your site from spam bots. It is a program that generates colourful image with distorted text that human can read but current spam bots cannot figure out the text.


To add captcha to your php form, use reCaptcha. Your need to sign up to recaptcha using your google account. http://www.google.com/recaptcha


Go to my account and add your site. Once you have added your site, you will get the following details.


1) Public key


2) Private key


In addition, you need to get php recatpcha plugin from http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest


Once you have the Public key, Private key and recaptchalib.php file (Only this file is required for the recaptcha to work) from the plugin, you can start.


For details on the php programming side, please go to http://probyte2u.hubpages.com/hub/How-to-Add-Captcha-in-Php-Form



Không có nhận xét nào:

Đăng nhận xét