<HTML>
<HEAD>
<TITLE>Candy preference form</TITLE>
</HEAD>
<BODY>
<FORM ACTION="SelectFormControlHandler.php" METHOD="POST">
What's your most favorite kind of candy?<BR>
<INPUT TYPE="radio" NAME="Candy" VALUE="peanut butter cups">Peanut butter cups<BR>
<INPUT TYPE="radio" NAME="Candy" VALUE="Snickers">Snickers<BR>
<INPUT TYPE="radio" NAME="Candy" VALUE="Turtles">Turtles<BR>
<INPUT TYPE="submit">
</FORM>
</BODY>
</HTML>
<!-- SelectFormControlHandler.php
<HTML>
<HEAD>
<TITLE>Candy preference reply</TITLE>
</HEAD>
<BODY>
Yum, <?php print("$Candy! ");
if($Candy == "peanut butter cups"){
print("peanut butter cups");
print(" $Candy.");
}else{
print("$Candy");
if($Candy == "Snickers"){
print("Snickers");
}elseif($Candy == "Turtles"){
print("Turtles");
}
}
?>
</BODY>
</HTML>
-->
|