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

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -