SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Form validation in OOP

  1. #1
    SitePoint Member naim's Avatar
    Join Date
    Jun 2008
    Location
    india
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Form validation in OOP

    Hi All,
    I want a simple form validation for single text field in OOP which is simple and clean.

  2. #2
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •