session_start(); $correct = true; if ($_GET["name"] == "") $correct = false; if (!preg_match("/^.+@\w+\.\w{2,4}$/", $_GET["email"])) $correct = false; ?>