|
|||
|
Hello to all..
I'm using ZF version 1.5.1 and I'm trying to create a single checkbox (with unchecked starting value) using the following code in my controller: PHP Code:
HTML Code:
<form enctype="application/x-www-form-urlencoded" action="" method="post"> <dl class="zend_form"> <input type="hidden" name="check" value="0" /> <input type="checkbox" name="check" id="check" value="1" checked="checked" checked="" /> </dl> </form> i've found no way to get past this behaviour. Another strange thing: I wasn't able to find the point where the ZF creates the markup for that field. I though it was in the view helper (Zend/View/Helpers/formCheckbox.php) which in fact contains the html part, but edits to this file don't make any change like it was not used.. ![]() Is this an issue or i didn't understand anything about ZF ? ![]() Hope you get the point! (sorry for any mistake, i'm not an english-native speaker) Thanks. |
|
|||
|
Thanks for your reply.
I tried to do that, but nothing changes. The markup generated is still the same, and the browser refuses to uncheck the checkbox by default. ![]() This is driving me nuts, but for the moment i arranged the thing using Yes/No select boxes... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|