#18765 [NEW]: FORM POST fields are missing
| From: | dannysy at hotmail dot com | Date: | Wed, 07 Aug 2002 04:23:35 +0000 |
| Subject: | #18765 [NEW]: FORM POST fields are missing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16106@lists.php.net to get a copy of this message | ||
From: dannysy@hotmail.com
Operating system: Windows 95
PHP version: 4.2.2
PHP Bug Type: *General Issues
Bug description: FORM POST fields are missing
I'm using Xitami and PHP4.2.2 I have two files form.html and sample.php.
They both reside in c:\Xitami\webpages.
form.html contains the ff. scripts:
<html>
<head> Sample </head>
<body><BR>
<form method=POST action="sample.php">
<input type=text name="uname" size=10>
<input type=submit name="OK">
</form>
</body>
</html>
sample.php contains the ff. scripts:
<?
echo "<html>";
echo "<head> Sample </head>";
echo "<body>";
echo "Name is ".$_POST['uname']."<br>";
phpinfo();
echo "</body>";
echo "</html>";
?>
After submitting form.html, you'll get the index 'uname' not defined. If
you change the METHOD (in form.html) to GET and $_POST (in sample.php) to
$_GET, it works fine. I also noticed that the values for all form fields
can be found in the ENV array. They can be accessed as 'FORM_'+field name
in caps (ie FORM_UNAME).
Thanks in advance.
Danny
--
Edit bug report at http://bugs.php.net/?id=18765&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18765&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18765&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18765&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18765&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18765&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18765&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18765&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18765&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18765&r=globals