I am using a simple HTML checkbox in a form to put a 1 for checked and a 0 for unchecked in a field called \"subcheck\" in a MySQL table.
Does the checkbox default t
If the checkbox isn't ticked then nothing is sent to the server. Instead, you can provide a default value with:
$subcheck = (isset($_POST['subcheck'])) ? 1 : 0;