Naneau

Go dik-dik, go!

On input validation 2

I posted about it yesterday. I’ve thought about it some more. Wrote some code. And I’m happy! I can validate input without fuss again. Yay. I really did get tired from writing trivial form validation rules into my controllers time and time again. Allow me to demonstrate my new approach.
First, I think about what fields [...]

On input validation

For years I have used PEAR’s HTML_QuickForm and loved it. I based my work flow around it. Basically, QuickForm lets you define a form, with all it’s elements, and attach validation rules to those elements. It could generate HTML for the form, so it was easy to integrate into templates. It had a simple interface [...]