Page 1 of 1
Form Validation Techniques
Posted: Fri Jan 13, 2006 7:15 pm
by php_wiz_kid
I was just wanting to see how you guys validate your forms. The way I do it just seems to take up way too much space and makes things complicated. I'm just looking for opinions. Thanks everyone.
Posted: Fri Jan 13, 2006 8:45 pm
by feyd
Most of my forms fall into fairly regular categories (the controls anyways) .. so I have a bunch of control-type-to-validator mappings which are automatically taken care of when a submission happens. This is all done in a central script (99.999% of the time) that then shunts to whatever script the submission was intended for.
Posted: Sat Jan 14, 2006 1:51 am
by AGISB
I got a validation object for the standard validation. And if something is not covered I either add a new class or do it right where it is needed.
Posted: Sat Jan 14, 2006 10:05 pm
by php_wiz_kid
Thanks for replying guys. It's always good to see other views on things.