php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2421 Using POST method results in CGI Error
Submitted: 1999-10-02 17:03 UTC Modified: 1999-10-05 15:20 UTC
From: david at bilkent dot edu dot tr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Windows 98 {PWS 2.0}
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at bilkent dot edu dot tr
New email:
PHP Version: OS:

 

 [1999-10-02 17:03 UTC] david at bilkent dot edu dot tr
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>

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-05 15:20 UTC] andi at cvs dot php dot net
This has been fixed in the latest CVS version. Beta 3 is due out next week.
 [2011-07-10 14:51 UTC] irker@php.net
Automatic comment from SVN on behalf of irker
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=313117
Log: Updated translation by Anonymous #2421
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Nov 19 01:00:01 2026 UTC