View Single Post
  #1 (permalink)  
Old December 30th, 2008, 12:44 AM
sjfoglia sjfoglia is offline
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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.
Reply With Quote