Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Captcha within the PHP forums, part of the Web Development category; How to implement captcha in php?...
|
|||||||
| PHP PHP - The most popular scripting language. Discuss PHP related questions here. Sample Scripts, Popular downloads, tools and utilites and more... |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Re: Captcha
Hi Sanjay,
If u want to implement captcha with php, u need to follow these steps.... 1) Make a PHP script 2)2) Add the following line at the top of the page where you need to implement CAPTCHA: <?php session_start() ?> 3) Add the following line to check whether the CAPTCHA string entered by the visitor is valid, before the line where you will proceed with a submitted message: <?php if($_SESSION["captcha"]==$_POST["captcha"]) { //CAPTHCA is valid; proceed the message: save to database, send by e-mail ... } ?> 4) Finaly add the CAPTCHA to the form. Try these steps & If any query let me know.... Regards, Riju. |
| The Following User Says Thank You to rijus For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AJAX Made Easy - Enabling CAPTCHA using Ajax | Lokesh M | AJAX & XML | 0 | 05-17-2008 08:45 AM |
| Code for email id verification using CAPTCHA | Geek_Guest | PHP | 1 | 07-09-2007 04:40 AM |