I'm using Zend Framework 1.12 on a project. I having some problems with the Zend_Form
. Some fields are generated dynamically on execution time, but the Zend_Form
is static, a element predefined at creation.
So, when the form is sent, the validation doesn't work because new fields were added and the sent form doesn't match the form created.
How do that adaptation?
You should try, following solution: after sending the form, get the
$_POST
array, then check which fields/values do you have and create/modify form Object with this fields/validation.