ID: 22427
Comment by: eng at anrdaemon dot mtu-net dot ru
Reported By: jroland at uow dot edu dot au
Status: Feedback
Bug Type: *General Issues
Operating System: Windows XP / 2000
PHP Version: 4.2.3
New Comment:
Err... :-F
Bug in two steps:
1. Fill out this form (test.html):
<form method="post" action="/test.html">
<input type="text" name="login" />
<input type="password" name="password" />
<input type="submit" value=" Log In " />
</table>
</form>
<?php print_r($_POST); ?>
2. See result....
No result (empty _POST) under Apache2, but Apache works well. Grrr...
But GET method works.
Previous Comments:
------------------------------------------------------------------------
[2003-03-30 13:53:09] eng at anrdaemon dot mtu-net dot ru
I have same bug under WinXP with Apache 2.0.44 (PHP as module), but in
Apache 1.3.27 (PHP as module also) I cannot reproduce this bug - same
form works well.
<form method="post" action="/test.html">
Apache's configurations identical as I see.
------------------------------------------------------------------------
[2003-03-30 06:55:10] [EMAIL PROTECTED]
I guess your problem is identical to bug #19460. Please confirm if
httpd.conf is edited correctly.
------------------------------------------------------------------------
[2003-03-27 02:08:36] sendoffer at ukr dot net
I did not report that bug, but have the problem with post variables.
I am using PHP 4.2.3-Win32 as a module for Apache 1.3.27., Windows
2000.
When POST is used like in:
--------------------------------------
<form action="" method="post" name="message">
<p>E-mail: <input name="p_email" value="" type="text" size="50">
</p>
<p>Sibscribe options:<br>
<select multiple name="p_s[]">
<option value="sub_news_company">Company news</option>
<option value="sub_news_employees">News from Employees</option>
<option value="sub_proposals">Proposals</option>
</select>
</p>
<p>
<input name="Input" type="reset" value=" Reset ">
<input name="Input" type="submit" value=" Sibscribe ">
</p>
</form>
<hr>
<?php
if ($HTTP_POST_VARS['p_s']) {
$p_s=$HTTP_POST_VARS['p_s'];
echo '<pre>';
print_r($p_s);
echo '</pre>';
}
?>
--------------------------------------
After submitting this form (2 last options selected) I got:
--------------------------------------
Array
(
[0] => news_employees
[1] => proposals
)
--------------------------------------
Values of the post array are missing 4 left letters!
I've experimented different ways but result is the same: when post
variable is array - values always trimmed by 4 left letters.
regards,
Yegor
------------------------------------------------------------------------
[2003-03-12 01:52:40] s dot franke at bebbosoft dot de
Additional info:
I am NOT using Apache. The used web server passes POST data untouched
to the CGI (here the php executable).
regards
Stefan
------------------------------------------------------------------------
[2003-03-11 10:15:22] s dot franke at bebbosoft dot de
I did not report that bug, but have the same problem. To be more
specific:
I am using the command line version of PHP 4.2.3-Win32. But the problem
still exists under php 4.3.0.
The bug (or misconfiguration?) is also reproducable with command line
version of PHP4.2.3 under Linux.
When POST is used (in conjunction with multipart/form-data)the POST
data is not read by PHP.
Writing an own funtion to read the POST data will let you read the POST
data.
I could setup an URL to reproduce it and with a <? phpinfo(); ?> page
to display how the variables are set. (I could also paste it here...)
regards
Stefan
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22427
--
Edit this bug report at http://bugs.php.net/?id=22427&edit=1