PHP5 is not passing form values from input variables
Hi,
I am working with PHP5 and I am not able to even pass values from an HTML form to a php script. The crazy part about this condition is the other day it was working fine. I have apache 2.2, and php5 installed on my notebook and also I have turned on the register_globals to equal on in the php.ini file.
Also, I am doing this with an HTML page using a form input variable that gets a php script and the php script should be able to read the variable that I create in the HTML page.
It is a very simple HTML form and php script:
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=POST ACTION="checkbox.php">
Have you eaten shrimp before?
<INPUT NAME="Choice" TYPE="Checkbox">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
------------------------------------------------------------------
(PHP SCRIPT)
<HTML>
<HEAD></HEAD>
<BODY>
<?php
echo $Choice;
?>
</BODY>
</HTML>
I do not know if this is php or windows causing this problem.
I just need to get this to work on my notebook so I can write some php scripts and test the scripts locally on the notebook.
Any help is appreciated.
|