Jump to content
xisto Community
Sign in to follow this  
electron

Header Redirect Errors

Recommended Posts

Hi,

I am using the header function to redirect after the processing of the form.
I have to specify a internal link using '#link'.

This works in Firefox and opera.
But in Internet Explorer internal linking when done from a redirect is not working for somewhat reasons.

e.g. header("Location: http://forums.xisto.com/no_longer_exists/");

this works in Firefox and Opera but not in Internet Explorer .
IE just accepts 'http://forums.xisto.com/no_longer_exists/' instead of http://forums.xisto.com/no_longer_exists/

Please help me if you know anything about this.
Well there might be a issue in Internet Explorer 7 and i dont have Internet Explorer 6.
If you know of such bugs in Internet Explorer 7 or any such bugs in PHP let me know.

Thanks and have a good day.



Share this post


Link to post
Share on other sites

that's strange, it probably is an error in IE7 if it works in other browsers, if theres any way of putinng the code online i, or someone else can test it in IE6, FF opera etc as well and see if we get errors too. You using the #link to focus the browser on a specific part of the page right? in which case i would definately say its a browser based problem not a code based one.

Share this post


Link to post
Share on other sites

You were doing this, right?:

<a href="http://forums.xisto.com/no_longer_exists/ is anchor text</a><a id(or name)="link"></a> This is the text at the beginning of a paragraph

Please post your code so we can check it!

Share this post


Link to post
Share on other sites

Isn't there something you can do on the cPanel, assuming you are hosted on Xisto?They have something you can do to manage redirects, though I'm not sure if you can configure it to activate after you process a form.And I agree with the previous poster, you should paste your code here so we can have a look at it.

Share this post


Link to post
Share on other sites

This has nothing to do with cPanel or with linking. And he did post his code.I've never encountered this problem as such, electron, but when I did a little experimenting with it I got some interesting results. Some of the time it would work fine for me and do exactly what it was supposed to - but other times there was some unusual behavior by the browser, including displaying the incorrect URL in the address box, displaying the correct URL but without the fragment, and displaying the fragment but not scrolling to it. As you said it works fine in Opera and FireFox, so perhaps it's connected to a bug in IE7 that hasn't been ironed out yet?

Share this post


Link to post
Share on other sites

I've also encountered this problem as such, electron, but when I did a little experimenting with it I got some interesting results. Some of the time it would work fine for me and do exactly what it was supposed to - but other times there was some unusual behavior by the browser, including displaying the incorrect URL in the address box, displaying the correct URL but without the fragment, and displaying the fragment but not scrolling to it. As you said it works fine in Opera and FireFox, please use this code in your php code, it's worked fine with meecho "<meta HTTP-EQUIV=\"REFRESH\" content=\"1; url=".$PHP_SELF."#link\">";coby

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.