Aldemar Bernal-2 wrote:
>
> Hi fozzyuw,
>
> That's because if the checkbox is not checked and no hidden has been added
> to the form, once you retrieve checkbox value it will give you an error,
> since when it is uncheck it just doesn't send that post value of the form.
> To 'fix' this, you must create a hidden element with the same name before
> the checkbox, that way, even if the checkbox is unchecked a value is
> passed
> to the form.
>
> Greetings,
>
> Aldemar
Ah! Thanks very much Aldemar. That makes perfect sense now.
--
View this message in context:
http://www.nabble.com/Zend_Form-generated-checkbox-field-tp16560973p19534466.html
Sent from the Zend Framework mailing list archive at Nabble.com.