From: xiefei dot admin at gmail dot com Operating system: header PHP version: 5.2.6 PHP Bug Type: PHP options/info functions Bug description: IE header not send #url
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 bug report at http://bugs.php.net/?id=45649&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45649&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45649&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45649&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45649&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45649&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45649&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45649&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45649&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45649&r=support Expected behavior: http://bugs.php.net/fix.php?id=45649&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45649&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45649&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45649&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45649&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45649&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45649&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45649&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45649&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45649&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45649&r=mysqlcfg