ID:               22427
 Comment by:       medhat dot s at scs-net dot org
 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 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!


Previous Comments:
------------------------------------------------------------------------

[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!

------------------------------------------------------------------------

[2008-07-21 11:19:33] americo dot patetta at gmail dot com

CONFIRMATION: The bug is present even using PHP 5.x and Apache 2.x ON
WINDOWS; It only shows up when posting from IE an using multipart/data.
Firefox works just fine.

------------------------------------------------------------------------

[2008-02-12 08:10:28] derrickpereira at gmail dot com

Had this same issue where form fields would NOT get passed if I was
using IE6, but went through without issues on Firefox. Using $_POST,
$_GET I would get nothing...

I traced the problem to the name I had given to textfield inputs - 

<input name="height" type="text">
<input name="length" type="text">

Changed them to m_height and m_length respectively and the form passed
without issues. Perhaps there are some reserved keywords that you cannot
use as name in IE6?

Hope that helps.

Derrick

------------------------------------------------------------------------

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

Reply via email to