/*********************************************************************** * froshims5.php * * Computer Science 50 * David J. Malan * * Implements a registration form for Frosh IMs. * Submits to itself. * Pre-populates name field upon error. **********************************************************************/ // if form was actually submitted, check for error if ($_POST["action"]) { if ($_POST["name"] == "" || $_POST["gender"] == "" || $_POST["dorm"] == "") $error = true; } ?>