One of the downsides to using checkboxes in HTML is the fact that if you don’t have the checkbox checked when the form is submitted it’s value doesn’t get submitted to the server so no value is sent for that form element.

However, if you put a hidden element before the checkbox the checkbox value will override the hidden element’s value if the checkbox is checked:
[sourcecode language='html']


[/sourcecode]