![]() |
Simple Captcha Library without creating image files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Simple Captcha Library without creating image files (/showthread.php?tid=57398) |
Simple Captcha Library without creating image files - El Forum - 03-12-2013 [eluser]Unknown[/eluser] Simple captcha library for codeigniter without creating images in the filesystem 1. Load simple_captcha library 2. Create a public function in your controller to get the captcha image & pass a string param to identify it. Code: public function get_captcha() { 3. Show the image in your form using your controller function Code: <img src='signup/get_captcha'/> 4. Get the input value on the form text box & get captcha value in the session using the library function Code: $captcha_text = $this->simple_captcha->get_captcha_text('signup'); 5. Check weather input text & captcha text matches. if yes the success ![]() simple_captcha.php (library) Code: <?php signup.php (sample controller ) Code: <?php or Download Attachment Simple Captcha Library without creating image files - El Forum - 07-17-2013 [eluser]quickshiftin[/eluser] Thanks for sharing! |