Hi,
I've found what I think is a bug in Internet Explorer, which I really need to be able to get around.
Here's the problem:
header("location: [url]http://www.mysite.com/page.php?var=something#bookmark[/url]");
This redirect in internet explorer will redirect to page.php, BUT the $_GET["var"] variable will equal this:
echo $_GET["var"];
//produces: something#bookmark
For some reason in IE, the bookmark is tacked onto the end of the variable! This is so anoying, and it doesn't happen in other browsers like mozilla.
If I now hit refresh in IE, the page will reload but the bookmark won't be tacked on the end:
echo $_GET["var"];
//produces: something
I don't even know what's causeing this? I suppose it must be a IE bug, but how? Why when I refresh the page is it ok?
I hate IE!! But I have to get this working, so if you know what can be done to get around this please let me know. Thanks.
Also the version IE I have tested this on is 6.0.2800.1106. I am sure it has worked before on IE maybe another version, but I can't remember.
Thank you,
-Adam