Archive for April, 2010

Robert Basic: Honeypot for Zend Framework

Robert Basic has posted an article showing how to detect when an automated spam script has been used to complete and post a Zend_Form form.

I just hacked up a little code snippet based on Matthew’s Honeypot WordPress plugin. It’s basically just a Validator for a Zend Form element which is hidden from the user via CSS. Cause it’s hidden, users won’t see it, but spambots will, well, cause they are bots.

He supplies code for the validator and also shows how it can be used with a text element. Well worth a read and adding to your forms.

Posted by Rob on 21st April 2010 under Around the web | 5 Comments »

Christian Kirkegaard: Password confirmation using Zend Form and Validators

Christian Kirkegaard has posted an article on how to create a password confirmation validator for use with Zend_Form.

A while back i needed a password confirmation field for my users. I looked and found this neat little snippet. I cant remember who created it originally so i cant give credits to the person but its quite easy to use.

There are two code snippets: one for the validator itself and one showing how to use it in within a Zend_Form instance object.

Posted by Rob on 6th April 2010 under Around the web | Comments Off