ID: 22427 Comment by: lars at renoz dot dk 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:
Same problem here - $_POST is randomly incomplete or empty. I have only seen this with IE - from version 6 to 8. tcpdump shows a bit more of the story: user sends: POST /bla.php?id=bla ... Content-Length: 80 but there is no data in that packet. A bit later Apache reaches timeout, and closes the connection. At this point it send a 503 error to the user, but executes PHP with the incomplete post. After the user received the 503 error - the browser actually sends a packet with the missing post data. Strange and clearly a browser bug. It should be noted that the post is so small that there is plenty of room in the first packet. Now - the strange part is - why is PHP being executed? And why is PHP allowing it self to be executed. Content-Length is clearly invalid, and the conntection is closed (and PHP is setup to ignore aborted requests (ignore_user_abort is off). Previous Comments: ------------------------------------------------------------------------ [2010-01-27 20:44:34] pierre at greywacke dot co dot za hi, i forgot to add the form submitted. i believe this could be in ie, but why? how can i prevent this from happening? <form name="contact" method="POST" action="action.php" enctype="multipart/form-data" id="contact" onSubmit="return Validatecontact(this);"> using php 5.2.9 - believe the problem to be client browser side as reported in other comments. ------------------------------------------------------------------------ [2010-01-27 19:50:14] pierre at greywacke dot co dot za I am also experiencing loss of form fields, albeit randomly. is there not a function to reload/refresh the data, i'm sure i've seen one albeit deprecated. ------------------------------------------------------------------------ [2009-11-03 07:57:31] medhat dot s at scs-net dot org I have the same problem! sometimes, all post variables disappear although that I use a normal form with normal text inputs & normal data size. no textareas and no "multiform" tag in the form php version : 5.1.6 apache webserver on Linux server. I'm still unable to fix it! ------------------------------------------------------------------------ [2009-02-05 23:38:04] neal dot pressley at yahoo dot com Please ignore the above comments. changing the case did not fix the problem. Its just irratic. it works some time, it does not work some time. The problem with both post and get. I have a checkbox and submit button in the form. If I do not check the checkbox and just submit the button, it works but if I use check and enter submit, it does not work. I moved the related part of the code from the big php file and tried to isolate the problem. Surprisingly it works perfectly as a small file but in the big php which has few more forms and tables, it does not work. ===== <?php echo "<pre>"; echo "post is"; print_r($_POST); echo "get is"; print_r($_GET); echo "request is"; print_r($_REQUEST); echo "let us check HTTP_POST_VARS"; print_r($HTTP_POST_VARS); echo "</pre>"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" media="all" href="../../stylesheet.css"> <title>Managing URL to StartContext Mapping </title> </head> <body style="margin: 0px;" onLoad="preloader();"> <form enctype="multipart/form-data" action="test1.php" method="POST"> <input type="hidden" name="submitted" value="true"> <input type="checkbox" name="dboptions" class="radio">Delete existing mappings from the database before loading the data from the CSV File. <input type="submit" name="submit" class="buttons" value="submit"> </form> </body> </html> =============== ------------------------------------------------------------------------ [2009-02-05 18:49:59] neal dot pressley at yahoo dot com I was facing the same problem. I had a html form with php scripts in which I was submitting radio buttons or checkboxes. When I post the form, PHP was not finding any post parameters. it was random, some time it was working and some time not. Even I tried with Get, it worked some time and some time not. Then I change ENCTYPE from uppercase to lowercase and it started working prefectly <form enctype="multipart/form-data" action="ManageMapping.php" method="POST"> ------------------------------------------------------------------------ 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