News Feed
Sections




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

Robert Basic's Blog:
A Zend_Captcha example
October 23, 2008 @ 10:27:17

Robert Basic found the creation of a CAPTCHA with the Zend_Captcha and Zend_Form components of the Zend Framework "a bit tricky" and decided to share an example he's come up with to help others out there.

I'll just show a quick example how to implement Zend_Captcha into a Zend_Form, may be useful for someone. There are several CAPTCHA types in ZF, like the Image, Figlet and Dumb. I use Image.

He includes the code for his form where the CAPTCHA component is configured to use a certain directories for the location to put the images, the font to use, and the label to put on it. He sets up the action for it and creates a captchaAction method in the same controller. This does the validation on the entered term to ensure that it matches the string in the image exactly.

0 comments voice your opinion now!
zendframework zendcaptcha zendform tutorial


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Using Zend_Feed to Merge Multiple RSS Feeds

Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x

EchoDitto Labs Blog: How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal

PHPMaster.com: Building ePub with PHP and Markdown

NETTUTS.com: How to Setup a Dedicated Web Server for Free


Community Events





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


opinion language conference introduction interview tips laravel podcast zendserver series framework deployment bugfix threedevsandamaybe library release symfony api developer community

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