OK so I have a form that has a checkbox:
$death=new Check('death'); $death->setAttribute('placeholder','Death'); $this->add($death);
When the page renders the form handle looks like this:
<input type="checkbox" id="death" name="death" placeholder="Death" />
when the form is submitted, in the controller if the checkbox is not checked the variable is not passed in $_POST which is as expected and standard HTML behavior. But when the checkbox is checked it is passing back the number 0 instead of "on" or the number 1. Is this a bug?