$name = $_POST["txtName"];
else
{
$nameErr = "Please enter your name";
$OK = false;
}
if (!empty($_POST["txtAdd"]))
$address = $_POST["txtAdd"];
else
{
$addressErr = "Please enter your Address";
$OK = false;
}
if (!empty($_POST["txtPhone"]))
$phone = $_POST["txtPhone"];
else
{
$phoneErr = "Please enter your Phone number(s)";
$OK = false;
}
}
?>
<html>
<style>
.error {color:RED}
</style>
<body>
<form name = form1 method = "POST" action =
"<?php echo $_SERVER['PHP_SELF'] ?>" >
<h2>Make Your Pizza</h2>
Size of the Pizza <span class = error><?php echo $sizeErr ?></span> </BR>
<input type = radio name = size value = Small>Small 8" -Serves 1 person</BR>
<input type = radio name = size value = Medium>Medium 12" -Serves 2 people</BR>
<input type = radio name = size value = Large>Large 16" -Serves 4 people
<P>
Select Type <?php echo $typeErr ?>
<Select name = "type">
<option>Regular</option>
<option>Thin Crust</option>
<option>Double Cheese</option>
</Select>
<P>
Toppings:
<input type = checkbox name = "Toppings[]" value = Cheese>Cheese
<input type = checkbox name = "Toppings[]" value = Corn>Corn
<input type = checkbox name = "Toppings[]" value = Tomato>Tomato
<input type = checkbox name = "Toppings[]" value = Chicken>Chicken
<BR><?php echo $topErr ?>
<HR>
<h2>Contact Details</h2>
<pre>