I have this line of code to send the value of checkbox to the database(1 or 0).
$premiere = (bool)$_POST['premiere'] == true ? 1 : 0;
When I check the checkbox and click save, it works. However, when I do the opposite (leaving it unchecked), I get a problem: The checkbox doesn't seem to send the "unchecked" value to the database. The code treats $premiere
as "true" always. Am I missing something?