HTML Input Checkbox return 'On' instead of 'True' when submitting form
Set the checkboxes value
attribute to true
and you will get true
in your post value.
It's browser specific, I suppose, what to send when value is undefined. You need to defined value
attribute on your radios/checkboxes to be sure what will be passed back to you. I would suggest value="1"