Form select input : Form Select : Form PHP Source Code


PHP Source Code » Form » Form Select »

 

Form select input



       
       
<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>
-->


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Form
» Form Select