php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45885 header function problem in Internet Explorer
Submitted: 2008-08-21 18:11 UTC Modified: 2008-08-21 20:20 UTC
From: jeffshadap at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
 [2008-08-21 18:11 UTC] jeffshadap at gmail dot com
Description:
------------
The header function behavior in Internet Explorer 6.0 is broken

Reproduce code:
---------------
<?php
if(isset($_REQUEST['submit']))
{
	header("Location:".$_SERVER['PHP_SELF']);
}
?>


<form method=GET>
<input type = submit name = submit VALUE = "GET">
</form>

<form method=POST>
<input type = submit name = submit VALUE = "POST">
</form>

Expected result:
----------------
Firefox and Internet Explorer
  Clicking on GET, and POST should redirects to the same page



Actual result:
--------------
Firefox:
  Clicking on GET, and POST redirects to the same page[correct]

Internet Explorer:
   Clicking on GET redirects to the same page[correct]
   Clicking on POST displays the page with title "The page cannot be displayed"[incorrect]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-21 20:20 UTC] tularis@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

If it works in FF and does not in IE, then that means it's a browser-issue. Make sure to update your browser to the latest version, and make sure your HTML is actually standards-compliant (no, currently it's not). It should work just fine once you do.

This is not a bug in PHP itself.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 13:01:31 2025 UTC