Redirection problem in IE6

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amold
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 11:54 pm

Redirection problem in IE6

Post by amold »

Hi,

We are facing one problem only on IE6. We have used one javascript code for redirecting page after user is login. It works fine on other browser, but on IE6 after user is logged in it is showing blank page and after refresh it will show the appropriate page.

JavaScript code:
window.location.href='page_name.php'

First we thought this is problem only for JavaScript but we created one test php page and added only three links by clicking on the link it will go to the site, but on first instance it is showing blank page on IE6.

We have some other sites on same server and they all are working fine with the same code, only one domain is giving problem in IE6.

I am using javascript only when user is logged it.

But if I click on the "index.php" which is not javascript is a simple link still it is displaying blank page on IE6. :(

Does it is related to some settings for that Domain in Apache or it is something else?

Waiting for reply...

Thanks in advance.

Regards,
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Redirection problem in IE6

Post by requinix »

Don't use JavaScript to redirect people.

Code: Select all

header("Location: page_name.php");
exit;
Just do that before you output anything. Works with every browser.
amold
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 11:54 pm

Re: Redirection problem in IE6

Post by amold »

Hi tasairis,

Thanks for your reply.

I am using javascript only when user is logged in, But I am facing problem even if I click on the "index.php" link which is not a javascript.

Regards,
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Redirection problem in IE6

Post by requinix »

Does it show index.php in the address bar?

Be more descriptive. What do you see? What do you not see? What's happening and what should it be doing instead?
amold
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 11:54 pm

Re: Redirection problem in IE6

Post by amold »

Hi tasairis,

Thanks for your reply,

Say http://www.sitename.com/test_cv.php this is the site test page URL and in that page I have only three links.

1) First link is http://www.sitename.com/
2) Second link is http://www.sitename.com/index.php
3) Third link is index.php

when I open the same test page on IE6 browser and click on any of the link it does not change the URL in address bar it remains same as test_cv.php and when I refresh the page it will show the actual content for the site.

Please do let me know if you need more clarification for the problem.

Regards,
amold
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 11:54 pm

Re: Redirection problem in IE6

Post by amold »

Hi All,

I have created the test page.

http://www.cvpartnersllc.net/test_cv.php

Please have a look on IE6 where it is showing blank page.

Regards,
amold
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 11:54 pm

Re: Redirection problem in IE6

Post by amold »

To be more specific.

Even simple link "index.php" first show blank page in IE6 and after refresh it will show the content for the same page.

This happens only on IE6 rest of the browser works well
Post Reply