php - issue with the CheckBox -
i have issue checkbox on zend_form when value have 0 si following code:
$e = new zend_form_element_checkbox('e'); $e->setlabel('e'); $emailnotification->options = array( 'checked' => $e->getcheckedvalue(), 'unchecked' => $e->getuncheckedvalue() );
and in controller:
$form->getvalue('e')
when inspect firebug find hiden checkbox contains value 0 , checkbox value=1
thanks in advance
Comments
Post a Comment