/*********************************************************************** * froshims6.php * * Computer Science 50 * David J. Malan * * Implements a registration form for Frosh IMs. * Submits to itself. * Generates list of dorms via an array. **********************************************************************/ // array of dorms $DORMS = array( "Apley Court", "Canaday", "Grays", "Greenough", "Hollis", "Holworthy", "Hurlbut", "Lionel", "Matthews", "Mower", "Pennypacker", "Stoughton", "Straus", "Thayer", "Weld", "Wigglesworth" ); // if form was actually submitted, check for error if ($_POST["action"]) { if ($_POST["name"] == "" || $_POST["gender"] == "" || $_POST["dorm"] == "") $error = true; } ?>