| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2006
Location: Staffordshire, UK
Posts: 30
|
PHP redirecting with anchor
Hey folks, Just thought i'd share this: When you redirect with an anchor in PHP using the header location it won't work in IE properly as it corrupts (or something). Took me hours to figure out! |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Oct 2006
Location: London, UK
Posts: 29
|
I think he means linking to a page anchor, like #content So, the code would be: header("Location: index.php#content"); I'm pretty sure this should work although I haven't done any tests. Doubt it would help, but what about using the alt code for the #. |
|
|
|
#4 (permalink) | |
|
Registered User
Join Date: Jul 2006
Location: Staffordshire, UK
Posts: 30
|
Quote:
Thats exactly it - had to use javascript to pick up something from the querystring instead. |
|
|
![]() |