ID: 22427 Comment by: pierre at greywacke dot co dot za 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:
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. Previous 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"> ------------------------------------------------------------------------ [2008-11-13 16:58:11] keith at tdrnetworks dot com Regarding the enctype="multipart/form-data" not populating the $_POST vars I found my solution was to disable the Suhosin security module. Have a go! ------------------------------------------------------------------------ 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