PHP 4.0 Bug #2421: Using POST method results in CGI Error
| From: | david at bilkent dot edu dot tr | Date: | Sat, 02 Oct 1999 21:03:37 +0000 |
| Subject: | PHP 4.0 Bug #2421: Using POST method results in CGI Error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11436@lists.php.net to get a copy of this message | ||
From: david@bilkent.edu.tr
Operating system: Windows 98 {PWS 2.0}
PHP version: 4.0 Beta 2
PHP Bug Type: Misbehaving function
Bug description: Using POST method results in CGI Error
The files below demonstrate the difficulty I am having. They work fine in php3 and also if the POST
method is replaced with GET. As is, the message "CGI Error The specified CGI application
misbehaved by not returning a complete set of HTTP headers. The headers it did return are:",
without anything else. If the action is changed to bug.php then it just waits forever!
Presumably the problem is related to the session module, but I cannot see how to make it work. I
have tried every combination of things I can think of to no avail. Am I doing something wrong or is
this a real bug? Any help would be appreciated as I need to get this working in a hurry!
----------------------------------------
bug.php
----------------------------------------
<html>
<body>
<?php
if ( $Submit == "World") {
echo "<p>hi $Submit</p>";
}
else {
echo "<p>hello</p>";
echo "<form method=\"POST\" action=\"bug2.php\">\n";
echo "<p><input type=\"Submit\" name=\"Submit\"
value=\"World\"></p></form>\n";
}
?>
</body>
</html>
----------------------------------------
bug2.php
----------------------------------------
<html>
<body>
<p>hi <?php echo $Submit ?></p>
</body>
</html>
----------------------------------------
----------------------------------------