if ((isset($_POST['submit'])==true) && (isset($_POST['checkbox'])==true)) { header("location: http://www.fullurl.com/nextpage.php"); } else if ((isset($_POST['submit'])==true) && (isset($_POST['checkbox'])==false)) { $Error = "You must check the box to continue."; } ?>