php not printing variable from a form
I am trying to get the checkboxes.htm & checkboxes.php from chapter 3 of the Beginning PHP book to work. When the checkboxes.htm calls the php script, it does not print the value from the form. I can echo strings within the php and they display correctly, but the value of the form is not displayed. Here is the code:
<---Begin checkboxes.html---->
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=POST ACTION="checkboxes.php">
Have you ever eaten haggis before?
<INPUT NAME="Choice1" TYPE="Checkbox" VALUE="Haggis">
<BR>
Have you ever eaten snails before?
<INPUT NAME="Choice2" TYPE="Checkbox" VALUE="Snails">
<BR>
Have you ever eaten locusts before?
<INPUT NAME="Choice3" TYPE="Checkbox" VALUE="Locusts">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
<---End checkboxes.html---->
<---Begin checkboxes.php---->
<HTML>
<HEAD></HEAD>
<BODY>
<?php
echo "$Choice1<BR>";
echo "$Choice2<BR>";
echo "$Choice3<BR>";
?>
</BODY>
</HTML>
<---End checkboxes.php---->
|