From: [EMAIL PROTECTED] Operating system: Debian 2.2 PHP version: 4.2.0 PHP Bug Type: Apache related Bug description: PHP difficulties in getting and using values from HTTP post and get forms
I have just recently installed Apache 1.3.24 and PHP 4.2.0 on a Debian 2.2 system. I had an identical installation beforehand, and it worked fine. I wish to use HTML forms to submit data for entry into a MySQL database. PHP won't inherit the values from forms, and displays them as NULL or of blank value. For instance, I created two files named test.htm and test.php. Test.htm looked like this: <head> <title>Test</title> </head> <body> <form method="get" action="test.php"> <input type="text" value="" name="textfield"> <input type="submit" value="Submit"> </form> </body> </html> And test.php looked like this: <? echo "The value of textfield is: " . $textfield ?> I would expect that since test.php is the action of the form, then $textfield would echo the value that the user entered in the text box. Instead, I get the following output: The value of textfield is: I'm not sure if this is a problem with PHP or Apache. Any help that can be offered would be greatly appreciated. Thanks! Ben Willett P.S. The files mentioned in this report can be found at http://www.bz0ne.net/test . -- Edit bug report at http://bugs.php.net/?id=16887&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16887&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16887&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16887&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16887&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16887&r=support Expected behavior: http://bugs.php.net/fix.php?id=16887&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16887&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16887&r=submittedtwice