Geeks Talk

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.

Captcha

This is a discussion on Captcha within the PHP forums, part of the Web Development category; How to implement captcha in php?...

Go Back   Geeks Talk > Web Development > PHP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

PHP PHP - The most popular scripting language. Discuss PHP related questions here. Sample Scripts, Popular downloads, tools and utilites and more...

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2009
Junior Member
 
Join Date: Sep 2007
Location: Mumbai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sanjay.nayal is on a distinguished road
Captcha

How to implement captcha in php?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 989
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
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.
Reply With Quote
The Following User Says Thank You to rijus For This Useful Post:
Reply

  Geeks Talk > Web Development > PHP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved