ID: 19365 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Duplicate Bug Type: Scripting Engine problem Operating System: Win 2000 PHP Version: 4.2.3 New Comment:
Dup of #17958 Previous Comments: ------------------------------------------------------------------------ [2002-09-16 15:46:23] [EMAIL PROTECTED] Hi, I think there are still issues with POST variables. I have tested using the following platforms: Platform 1: OS: Windows XP Professional Webserver: Apache/2.0.40 PHP: 4.2.3 Platform 2: OS: Windows 2000 Professional Webserver: Apache 2.0.40 PHP: 4.2.3 Platform 3: OS: Windows 2000 Professional Webserver: Apache 1.3.26 PHP: 4.2.3 I use a custom http client to connect to the http server. The http requests are multipart/form-data. A sample request: POST /cgi-bin/XXXXXXX HTTP/1.1 Authorization: Basic XXXXXXXX Content-Type: multipart/form-data; boundary=XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX User-Agent: Java1.4.0 Host: XXX.XXX.XXX.X:XXX Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-length: 142 XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX Content-Disposition: form-data; name="fieldName" fieldValue XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX-- The $_POST array is empty. I have tested against IBM HTTP Server/V5R2M0 and have not had a probelm retrieving multipart/form-data POST variables using IBM REXX CGI Parse. I am pretty sure my header is valid. Thanks, Jeff ------------------------------------------------------------------------ [2002-09-12 16:13:59] [EMAIL PROTECTED] I tried the CVS Snapshot for Windows, and now instead of the error of Undefined index, there is nothing that's printed. My current code for find.php is: <html> <head> </head> <body> <?php print_r ($_POST); $input = $_POST["design"]; ?> </body> </html> Result: Array() that's all ! GET is still working ! ------------------------------------------------------------------------ [2002-09-12 12:03:10] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-09-12 11:34:26] [EMAIL PROTECTED] I am using Win2K with IIS 5. I have tried to install through the installshield version as well as the manual zip file version 4.2.3 And print_r $_POST (as well as $_POST['var']) gives an empty array but $_GET works ! My php.ini is the default that came with the installation files. What more information do you need ? ------------------------------------------------------------------------ [2002-09-12 05:58:20] [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. ------------------------------------------------------------------------ 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/19365 -- Edit this bug report at http://bugs.php.net/?id=19365&edit=1