PHP проверка, если флажок isset
<?php
if(isset($_POST['checkbox']) {
// runs if checkbox is checked
} else {
// runs if checkbox is not checked
}
Cautious Cardinal