-
SitePoint Member
Form validation in OOP
Hi All,
I want a simple form validation for single text field in OOP which is simple and clean.
-
You don't need OOP for that. But if you want to go OOP, usually a whole form is represented as object as well as all elements have their own classes.
Zend_Form is a comprehensive class for handling forms - it does filtering, validation, errors:
http://framework.zend.com/manual/en/zend.form.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks