Data from "multipart/form-data" goes missing
| From: | Miguel Cruz | Date: | Thu, 14 Mar 2002 19:02:58 +0000 |
| Subject: | Data from "multipart/form-data" goes missing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88552@lists.php.net to get a copy of this message | ||
(Sorry if this is a duplicate post; I sent it through the news server but
began to think that might not be forwarding posts to the list)
For some reason, on just one server, data from forms posted with
ENCTYPE="multipart/form-data" never makes it to the PHP script.
We use this extremely simple test script:
<form method="post" enctype="multipart/form-data" action="<?=
$PHP_SELF ?>">
<!--<form method="post" action="<?= $PHP_SELF ?>">-->
<input name="textbox">
<input type="submit">
</form>
<pre>
<?= var_dump($_REQUEST) ?><hr><?= $GLOBALS['CONTENT_LENGTH'] ?>
</pre>
And on this one server, no output shows unless the first <form> tag is
commented and the second uncommented. On all other servers, with apparently
identical configuration, form data appears normally.
In all cases the Content_Length value rises and falls with the length of the
string I type into the text box.
The build on this server (PHP 4.1.2) is extremely simple:
./configure --with-apache=../apache_1.2.23 --with-mysql
Apache is built with PHP and mod_rewrite.
Any ideas?
miguel