There are 3(I do not know how many would be it changeable. 3 only example) checkboxes in my form and I want to detect unchecked checkboxes with php when it post. How can I d
You can do this check entirely in PHP with the following function:
function cbToBool($cb = true) { if (isset($cb)) { return true; } else { return false; } }
using it like this
$_POST["blocked"] = cbToBool($_POST["blocked"]);