-- Sudheer <[EMAIL PROTECTED]> wrote
(on Sunday, 03 August 2008, 03:44 PM +0530):
> Sudheer wrote:
> > I did not receive a copy of this message from the list. I suspect a  
> > problem with my e-mail client. Apologies if you received this message  
> > twice.
>
> I have advanced a bit.
>
> I have encountered a problem with my new code.
>
> You can see the code and output here -> http://pastebin.ca/1091642
>
> When I create checkbox form elements in the subform, it generates hidden  
> fields. If I replace them with text fields, I get correct output and the  
> hidden form fields vanish.

HTML does not submit unfilled checkboxes in a form payload. As a result,
forms with checkboxes either do not validate, or no value is returned
for the checkbox elements. The hidden fields are present to ensure a
value is _always_ passed for the checkbox, correcting this issue.

What you're seeing is the intended behavior of Zend_Form.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to