#22427 [NoF->Fbk]: Missing Form Post Data

From: Date: Sun, 30 Mar 2003 12:55:11 +0000
Subject: #22427 [NoF->Fbk]: Missing Form Post Data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36712@lists.php.net to get a copy of this message
ID: 22427 Updated by: moriyoshi@php.net Reported By: jroland at uow dot edu dot au -Status: No Feedback +Status: Feedback Bug Type: *General Issues Operating System: Windows XP / 2000 PHP Version: 4.2.3 New Comment: I guess your problem is identical to bug #19460. Please confirm if httpd.conf is edited correctly. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2003-03-09 19:14:42] sniper@php.net 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] sniper@php.net 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. ------------------------------------------------------------------------ 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

« previous php.bugs (#36712) next »