Mantis - Quercus
Viewing Issue Advanced Details
1571 major always 01-17-07 14:13 02-20-07 12:36
dberry  
nam  
normal  
closed 3.1.0  
fixed  
none    
none 3.1.1  
0001571: $_POST ARRAY NOT GETTING FILLED
On a post, the paramaters are only available via $_REQUEST. $_POST remains empty. Here is a test file:

<html>
<head>
</head>

<body>
<form action="displayParameters.php" name="frmPost" method="POST">
    <fieldset>
        <legend class="legend">Post Test</legend>
        <input type="text" name="txt1" length="10" value="text box 1">
        <input type="text" name="txt2" length="10" value="text box 2">
        <input type="text" name="txt3" length="10" value="text box 3">
        <input type="text" name="txt4" length="10" value="text box 4">
        <input type="submit" name="subSubmit" value="Post" />
    </fieldset>
</form>
<form action="displayParameters.php" name="frmGet" method="get">
    <fieldset>
        <legend class="legend">Get Test</legend>
        <input type="text" name="txt5" length="10" value="text box 5">
        <input type="text" name="txt6" length="10" value="text box 6">
        <input type="text" name="txt7" length="10" value="text box 7">
        <input type="text" name="txt8" length="10" value="text box 8">
        <input type="submit" name="subSubmit" value="Get" />
    </fieldset>
</form>
</body>
</html>
Here is the "displayParameters.php" called by the above test file:

<?php
// This is a test to find out if the $_POST and $_GET are being set correctly

function printParam($value, $key) {
    echo("$key=$value
");
}
?>

<html>
<head>
</head>

<body>

<h1> REQUEST PARAMETERS</h1>

<?php array_walk($_REQUEST, 'printParam'); ?>

<h1> POST PARAMETERS</h1>

<?php array_walk($_POST, 'printParam'); ?>

<h1> GET PARAMETERS</h1>

<?php array_walk($_GET, 'printParam'); ?>

</body>
</html>

Notes
(0001732)
nam   
01-18-07 03:26   
Resin 3.1.0
OS: Windows

Issue was not reproducible. Please try the official 3.1.0 release and give system configuration if issue still exists.


test case output on POST:
--------------------------
POST PARAMETERS
txt1=text box 1 txt2=text box 2 txt3=text box 3 txt4=text box 4 subSubmit=Post
(0001762)
nam   
02-13-07 11:20   
$_POST data lost only when a servlet filter reads in request parameters

(0001763)
nam   
02-20-07 12:36   
php/081d