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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -