News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Utah PHP Users Group:
PHP-CAPTCHA
July 13, 2006 @ 05:34:24

On the Utah PHP Users Group website today, there's a quick new tutorial concerning the creation of a CAPTCHA image for your site (using the GD functionality in PHP).

The following article includes code and examples on how to prevent bots from taking part in online polls, registering for free email accounts, more recently, preventing bot-generated spam by requiring that the (unrecognized) sender pass a CAPTCHA test before the email message is delivered [implemented in Yahoo]. They have also been used to prevent people from using bots to assist with massive downloading of content from multimedia websites.

First, they create the form the entire example centers around before even looking at the code. With that laid down and explained, they get into the image creation and addition of the string to make the "humans only" image. Finally, they show how to check the word entered for the CAPTCHA verification against a session variable to see if they're a match.

0 comments voice your opinion now!
captcha image tutorial form verification gd session captcha image tutorial form verification gd session


blog comments powered by Disqus

Similar Posts

Daniel Cousineau's Blog: Hierarchical Data With PHP and MySQL

NetTuts.com: Form Validation in Symfony 2

PHPBuilder.com: The ABC's of PHP - Part 10 - The Final Installment (XML & Regex)

Brian Swan's Blog: Getting Started with the SQL Server Driver for PHP

Zend Developer Zone: Paging and Sorting Data with Zend Framework, Doctrine and PEAR (part 1)


Community Events

Don't see your event here?
Let us know!


unittest interview voicesoftheelephpant php7 install extension release podcast opinion example library laravel5 framework api language xdebug series community introduction laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework