ID: 22427 Comment by: sendoffer at ukr dot net Reported By: jroland at uow dot edu dot au Status: No Feedback Bug Type: *General Issues Operating System: Windows XP / 2000 PHP Version: 4.2.3 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2003-03-09 19:14:42] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-02-26 05:28:07] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-02-26 05:17:57] jroland at uow dot edu dot au I am currently experincing some problems with missing post form data. There seem two be 2 problems: 1) When a variable is long (for example a textarea and lots of text is in it), the post data is not sent. 2) Sometimes even with small textarea, the post is still not outputed, but if you hit refresh and click reload post data, it sometimes works. I have also set the max post size to 20MB which should be plenty for just text. I seem to have this problems on all browsers / computers. Ay ideas? Thanks Joel ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22427&edit=1