Sorry, you must leave first name and last name. Please go back and try again."; exit(); } if ($extension.$email.$home.$cell == '') { print "

Sorry, you must leave contact information. Please go back and try again.

"; exit(); } $query = "update SR_instructor set Department='$dpt', FirstName='$firstname', LastName='$lastname', Extension='$extension', Email='$email', Home='$home', Cell='$cell', Memo='$preference', Prime='$contact' where InstructorID='$ID'"; $result = mysql_query($query, $connection) or die ("Error in query: $query. " . mysql_error()); header("Location: instructor.php?dpt=$dpt"); exit(); ?>