When I create a form with a checkbox initially checked,
<input type="checkbox" name="foo" checked>
when a user unchecks the checkbox and then presses the submit button on the form, PHP still returns POST["foo"] = "on".
How can I get PHP to return "off" (or not post at all) when a checkbox that is initially checked becomes unchecked?
Please show mercy and help me...I've been killing myself over this. Do I need to use javascript?
😕