Is there a way to check of a checkbox is unchecked with php? I know you can do a hidden field type in html but what about with just php when the form is submitted? I tried b
$checked = $_POST['notif'];
foreach($checked as $ch){
if($ch == $i){
/add element to checked set
$array_checked[]=$ch;
}
}
for($i=1;$i<6;$i++){
if(in_array($i,$array_checked)){
//do for checked
}else{
//do for unchecked
}
}