(on Sunday, 31 August 2008, 08:01 PM +0800):
> But why should we add a hidden input ?
To ensure a value is actually sent. When a checkbox is not checked, it
does not send a key for that element when the form is submitted. Adding
the hidden element ensures that the unchecked value is transmitted. This
is done to ensure that a value for the element is always present.
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论