ID:               45649
 User updated by:  xiefei dot admin at gmail dot com
 Reported By:      xiefei dot admin at gmail dot com
 Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: header
 PHP Version:      5.2.6
 New Comment:

thinks , This is IE bug


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

[2008-07-29 17:21:25] [EMAIL PROTECTED]

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.

This is browser dependent. The browser do not have to send the #hash
while sending HTTP request (e.g. if you add #123 to the address of a
page you are viewing, the browser will not refresh the page, it will
just scroll to the element named "123").

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

[2008-07-29 01:27:52] xiefei dot admin at gmail dot com

form enctype is multipart/form-data

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

[2008-07-29 01:24:09] xiefei dot admin at gmail dot com

Description:
------------
when I upload file but header in ie not have #url, in firefox  header
#url are have , if you remove <input type="file" name="good" /> the name
,then header have #123 ,if not remove name then header the url not have
#123,why?




Reproduce code:
---------------
in ie not have #123
<?php
$a =$_POST['a'];
if($a) {
        header("location:/a/w#123");
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="reply_form" action="" method="post"
enctype="application/x-www-form-urlencoded">
<input type="file" name="good" />
<input type="text" name="a" value="123" />
<input name="submitw" type="submit" class="btn" value=" " />

</body>
</html>


ie have #123


<?php
$a =$_POST['a'];
if($a) {
        header("location:/a/w#123");
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="reply_form" action="" method="post"
enctype="application/x-www-form-urlencoded">
<input type="file" />
<input type="text" name="a" value="123" />
<input name="submitw" type="submit" class="btn" value=" " />

</body>
</html>

Expected result:
----------------
/a/w#123

Actual result:
--------------
/a/w


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


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

Reply via email to