Only my checkboxes that are checked are being put into $_POST. I would like for the ones that are checked to be in $_POST with a value of ‘true’ and the non checked ones to have a value of ‘false.’ Is there anyway to do this or will the POST request always only contain info about checked checkboxes.
The only thing I can think of is to use hidden form fields and just have the checkboxes manipulate those.
See Posting Unchecked Checkbox and Unchecked checkbox values
It is possible by adding hidden fields with same name.