Q: Advantages of using Zend\Form? Hello I am creating my website again but in Zend Framework,but I am confused,why there is a Zend\Form for creating forms?
I think the easiest way is create a view in HTML but maybe I am wrong..I would like to know why Zend provide us to create forms in that way.
Thanks

A: It's easy to bind Objects to Forms and populate either the Object or the Form with each others Data. It is easy to provide Filters and/or Validators for the Form-Elements. You do not need to write more than echo $this->formCollection($form), even if you have 120 Form-Elements. And changing the form doesn't really require you to change the view, too (depending on how you work). Form-Errors are easily attached to the specific elements, etc... etc...
This is object-oriented-programming (OOP). You don't NEED any of this, but boy it sure helps a lot to get stuff done.

A: Zend\Form is not only for creating forms. It is also there for validation. When a user sumbits the form, and you get the data, Zend\Form can validate the data for you. For example, it can check if a password is at least 8 characters. Or if an email address is actually a valid email address.
