a href link not working 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
ninethousandfeet
Forum Contributor
Posts: 130
Joined: Tue Mar 10, 2009 4:56 pm

a href link not working in IE6

Post by ninethousandfeet »

hello,

i've run into a problem with IE6 and a link of mine... for some reason, i click this link in IE6, and the page goes blank and the URL stays on the same page?? any ideas here because i'm completely lost with this, thank you!
this is the link that won't work in IE6...

Code: Select all

 
<a href="searchusers.php">Search Users</a>
 
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: a href link not working in IE6

Post by McInfo »

A single link does not provide enough information to diagnose the problem.

Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 12:47 pm, edited 1 time in total.
ninethousandfeet
Forum Contributor
Posts: 130
Joined: Tue Mar 10, 2009 4:56 pm

Re: a href link not working in IE6

Post by ninethousandfeet »

i'm not really sure what to provide though because it is just as if IE6 is not redirecting and refreshing the page all the way through. if i click the link, then press the refresh button, i am on the right page. i do not want to use "refresh" in the meta so i need to find another way to fix the problem...

one forum i read said they had a similar problem and use a hack something like this:

Code: Select all

 
<?php
header ("content-type: text/html; charset=iso-8859-2");
?>
...
<!-- <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> //-->
 
will this mess up other header functions i have in my script? i'm new to php so i don't want to use a hack like this without knowing the full consequences that come from it.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: a href link not working in IE6

Post by McInfo »

Can you post an example made by trimming your script down to the minimum amount of code necessary to reproduce the error?

Also, please post the version number found in Internet Explorer > Help menu > About Internet Explorer.

Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 12:48 pm, edited 1 time in total.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: a href link not working in IE6

Post by McInfo »

It might help to use

Code: Select all

<?php
header('Cache-Control: no-cache');
?>
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 12:48 pm, edited 1 time in total.
ninethousandfeet
Forum Contributor
Posts: 130
Joined: Tue Mar 10, 2009 4:56 pm

Re: a href link not working in IE6

Post by ninethousandfeet »

do you think i should use that snippet with the header(cache...) in addition to the

Code: Select all

header ("content-type: text/html; charset=iso-8859-2");
?

this is the code on the page, the searchusers.php link, USERupdate.php link, and logout link all seem to go to a blank page without fully redirecting the user... any suggestions as to why it's doing this in IE6? any solutions?

Code: Select all

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="refresh" "Content-Type" content="text/html; charset=UTF-8" />
<title>share YOUR discount | ME</title>
<link href="style_purple.css" rel="stylesheet" type="text/css" media="screen" />
</head>
 
<body onload="MM_preloadImages('Images/chatHover.png','Images/searchHover.png','Images/shareHover.png','Images/homeHover.png')">
<div><img src="Images/background.jpg" alt="background" name="background" width="1150" height="768" id="background" /></div>
    <div id="scroller">
     <div id="header"><img src="Images/header.png" width="751" height="72" /></div>
     <div id="usernameDiv"><table width="751" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td width="81">&nbsp;</td>
    <td width="66" valign="bottom"><a href="feedbackLOGGEDIN.php" class="leftLinks">contact</a></td>
    <td width="59" valign="bottom"><a href="about.php" class="leftLinks">about</a></td>
    <td width="105" valign="bottom"><a href="searchusers.php" class="leftLinks">search users</a></td>
    <td width="172" valign="bottom"><a href="friendList.php?user_id=<?php echo $row_getUserInfo['user_id']; ?>" class="leftLinks">view friends</a></td>
    <td width="142" valign="bottom"><a href="USERprofile.php" class="usernameLink"><?php echo $row_getUserInfo['username']; ?></a></td>
    <td width="45" valign="bottom"><a href="<?php echo $logoutAction ?>" class="rightLinks">logout</a></td>
    <td width="78" valign="bottom"><a href="USERupdateProfile.php" class="rightLinks"> edit profile</a></td>
  </tr>
      </table>
      </div>
      <div id="contentWelcome">
        <table width="600" border="0" align="center" cellpadding="3" cellspacing="3" id="userTable">
          <tr>
            <td><span class="font16Red"><?php if (isset($_COOKIE['welcomeBack'])) { echo 'Welcome back, '; 
} else {
echo 'Welcome to your profile, ';
} ?></span><span class="usernameHeader"><?php echo $row_getUserInfo['username']; ?>!</span></td>
          </tr>
        </table>
        <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
          <table width="590" border="0" align="center" cellpadding="3" cellspacing="3">
            <tr>
              <td valign="baseline"><span class="font16Red">fun Fact</span>
<input type="submit" class="updateFunFact" value="Update" /></td>
            </tr>
            <tr>
              <td></td>
            </tr>
          </table>
          <input type="hidden" name="user_id" value="<?php echo $row_getUserInfo['user_id']; ?>" />
          <input type="hidden" name="MM_update" value="form2" />
        </form>
  </div>
</body>
</html>
<?php
mysql_free_result(....)
?>
 
 
Post Reply