ID:               32109
 Comment by:       oancea at gmail dot com
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: windows
 PHP Version:      5CVS-2005-02-25 (dev)
 New Comment:

Same problem here.
Apache 2.0.52, Win XP SP2, PHP5.1- 28. Feb. 2005
(http://snaps.php.net/win32/php5-win32-200502281130.zip)
The script:
<form action="form.php" method="POST">
        <input type="text" name="textbox" value="Pot" />
        <input type="submit" name="submit" value="Push" />
</form>
And form.php:
echo "<pre>";
print_r($_POST);
echo "</pre>";
echo "<pre>";
var_dump($_POST);
echo "</pre>";
With GET is working.
Expected result:
Array
(
    [textbox] => Pot
    [submit] => Push
)

array(2) {
  ["textbox"]=>
  string(3) "Pot"
  ["submit"]=>
  string(4) "Push"
}
Actual result:
Array
(
)

array(0) {
}
With php 5.0.3 is working, but I need some advanced php 5.1 features.
Thank-you.


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

[2005-02-27 17:32:55] [EMAIL PROTECTED]

I had apache 2.0.52 and I upgraded it to 2.0.53 and still doesn't
work.

Any simple script like the above helps to reproduce:
<?
print_r($_POST);

if(!empty($_POST['t'])){
    file_put_contents('bugs.txt',$_POST['t']);
    echo "ok";
}else{
    echo '<body><form method="POST" action="bugs.php"><textarea
rows="10" name="t" cols="92"></textarea></p><p><input type="submit"
value="submit"></form></body>';
}
?>

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

[2005-02-27 14:31:36] [EMAIL PROTECTED]

Reproduce script? (fyi: works fine here)


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

[2005-02-27 13:54:45] [EMAIL PROTECTED]

Sorry Derick, but I don't have any more info.

I simply upgraded PHP (that was one or two weeks old) to the most
recent CVS version and the POST vars are broken.

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

[2005-02-27 12:32:02] [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.


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

[2005-02-25 14:17:59] [EMAIL PROTECTED]

Description:
------------
The POST form data is always empty, while GET works.

In linux with PHP 5.1 built: Feb 20 2005 14:51:15, I don't have any
problem.



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


-- 
Edit this bug report at http://bugs.php.net/?id=32109&edit=1

Reply via email to