I have this checkbox in my form:
<input type="checkbox" name="private" id="private" />
When I submit my form, the checkbox always returns on, even when I didn't check it.
echo $_POST['private'] //result is always returns on
$private = isset($_POST['private']) ? 1 : 0; //result is 1 always
What am I doing wrong?