Forum Moderators: coopster
The thing is:
header("Location: h**p://www.mysite.se/somefile#a");
goes to
header("Location: h**p://www.mysite.se/somefile");
So it ignores everything from the hash till end (Just in IE6 & 7)
and this is happens only when the landing page has a form with enctype="multipart/form-data"
if i remove this [enctype="multipart/form-data"] then it works fine.. so how to solve this?
Thanks in advance
File 1: a.php
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="cs/design.css">
<title></title>
</head>
<body>
<form name="newad" action="b.php" method="post" enctype="multipart/form-data">
<table id="table1" border="0">
<tr>
<td style="vertical-align:text-top"><A NAME="k"></A>Image: </td>
<td ><input name="userfile" type="file"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="preview" value="Preview my ad ››"></td>
</tr>
</table>
</form>
</body>
</html>
---------------------------------------
File 2: b.php
-------------
<?
header("Location: a.php#a");
?>
---------------------------------------
It will redirect correctly if u removed either:
enctype="multipart/form-data"
OR
<input name="userfile" type="file">
Thanks in advance
(Just in IE6 & 7)
I just tried it on my server with IE6 and it works perfectly fine. I'll try some experimenting with it a little later with IE7.
Seems strange...