kali ini sy coba u implementasi recaptcha dengan codeigniter..


1. donlut file recaptcha disini
Files Included
(copy file ke folder system/application)
* config/form_validation - enables you to add/edit any rules you may need to include if the reCaptcha is part of a larger form
* config/recaptcha - configuration of the reCaptcha parameters
* controllers/recaptchademo - a quick demonstration page you can use for testing
* views/recaptcha_demo - a view to help in testing
* views/recaptcha - the form snippet used to generate the reCaptcha to the user
* libraries/recaptcha - The reCaptcha library
* language/english/recaptcha_lang - language entries
2. isi public dan private key (sblmnya sign up dulu di reCAPTCHA)
3. tambahkan code berikut di controller yg akan menggunakan captcha
$this->load->library('recaptcha');
$this->load->library('form_validation');
$this->lang->load('recaptcha');
$this->load->helper('form');
notes: jika ada muncul pesan kesalahan Unable to load the requested file: recaptcha.php coba cek kembali file views/recaptcha apakah sudah ditambahkan/ belum :)
sumber : disini
0 comments:
Post a Comment