$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
} else {
echo "Hello, ".$Fname." ".$Lname.".
";
echo "You are ".$gender.", and you like ";
foreach ($food as $f) {
echo $f."
";
}
echo "".$quote."
";
echo "You're favorite time is ".$TofD.", and you passed ".$education."!
";
}
?>