I have this input:
<input name="giftwrap" type="checkbox"/>
However, when the form is submitted and the checkbox has not been checked, I get a null
rather than a false. I want a false to be submitted.
I'm feeling if I give the input a default value of unchecked
it'll return false rather than null
as if I tick and then untick the input I get false
.
So how do I set the input as checked, and how do I set the input as unchecked?