Bug #16887 Updated: PHP difficulties in getting and using values from HTTP post and get forms
| From: | ben at wwwtools dot com | Date: | Sun, 28 Apr 2002 17:53:09 +0000 |
| Subject: | Bug #16887 Updated: PHP difficulties in getting and using values from HTTP post and get forms | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6355@lists.php.net to get a copy of this message | ||
ID: 16887
Updated by: ben@wwwtools.com
Reported By: ben@wwwtools.com
Status: Bogus
Bug Type: Apache related
Operating System: Debian 2.2
PHP Version: 4.2.0
New Comment:
My mistake. I had to edit php.ini to set file_uploads to On.
Thanks anyways.
Previous Comments:
------------------------------------------------------------------------
[2002-04-28 13:36:03] mfischer@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
------------------------------------------------------------------------
[2002-04-28 13:26:56] ben@wwwtools.com
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 this bug report at http://bugs.php.net/?id=16887&edit=1