// http://stackoverflow.com/questions/12115373/detect-unchecked-checkbox-php if (isset($_POST['selected' . $i])) { $sel_count++; } $i++; } if (10 < $sel_count) { // Too many selected submissions, warn the user and don't save changes. echo '<script type="text/javascript">'; echo 'window.alert("Please select no more than 10 findings for final evaluation!")'; echo '</script>'; } else { $i = 0; while ($i < $view_submission->count) { if (isset($_POST['selected' . $i])) { $view_submission->select_submission($i); } else { $view_submission->deselect_submission($i); } $i++; } } } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">