I have removed small errors in the code,
and done some formatting..
Take care of the validation before form submission..
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="#">
<h2>FORM:</h2>
First Name:<input type="text" size="12" maxlength="12" name="Fname">
Last Name:<input type="text" size="12" maxlength="36" name="Lname">
<h2>Gender:</h2>
Male:<input type="radio" value="Male" name="gender" checked>
Female:<input type="radio" value="Female" name="gender">
<br/>
<h2>Please choose type of residence:</h2>
Steak:<input type="checkbox" value="Steak" name="food[]" checked>
Pizza:<input type="checkbox" value="Pizza" name="food[]">
Chicken:<input type="checkbox" value="Chicken" name="food[]">
<br/><br/>
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea>
<br/>
<h2>Select a Level of Education:</h2>
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select>
<br/>
<h2>Select your favorite time of day:</h2>
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select>
<br/>
<br/>
<input type="submit" value="submit" name="submit">
</form>
<?php
if(isset($_POST["Lname"])&&isset($_POST["gender"])&&isset($_POST["food"])&&
isset($_POST["quote"])&&isset($_POST["education"])&&isset($_POST["TofD"]))
{
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
}
if (!isset($_POST['submit']))
{
}
else
{
echo "Hello, <b>".$Fname." ".$Lname."</b>.<br/>";
echo "You are <b> ".$gender."</b>,<br/> and you like ";
foreach ($food as $f) {
echo $f."<br/>";
}
echo "<b>".$quote."</b></br>";
echo "You're favorite time is <b> ".$TofD."</b>, <br/>and you passed <b> ".$education."!</b>";
}
?>
</body>
</html>