I have found the problem.
Some versions of IE6 have a bug (what a surprise) that when an anchor is used in a redirect from an ASP file IE screws up the querystring so that anchor becomes part of the preceding querystring eg:-
forum_posts.asp?PID=123#123
Should be read into the ASP from the querystring as:-
123
However, some version of IE6 read this in as:-
123#123
This is where the problem is and it only happend when you do a redirect (302 object moved) not when you go to the URL directly which is why refresh fixes the problem.
Microsoft have now fixed this bug but, but for those who are running the buggy versions of IE 6 I have come up with some code that removes the anchor from the querystring.
Place the following code at line 191 of the file forum_posts.asp:-
'Fix for stupid IE 6 redirect bug (IE SUCKS!!!) MS have fixed this for IE7 If lngGetPostID = 0 AND Request.QueryString("PID") <> "" Then 'Remove the '#' hash anchor mark IE 6 includes in the string when doing a redirect (IE SUCKS!!) If InStr(Request.QueryString("PID"), "#") Then lngGetPostID = CLng(Mid(Request.QueryString("PID"), 1, InStr(Request.QueryString("PID"), "#")-1)) End If |