Jump to content

Recommended Posts

Hello,

 

I'm having trouble with php links in IE6.  The links from my site's user profile page to subsequent pages result in a blank page.  For example, if you click on the link to search our user database, a white page results.  Once you click the browser's refresh button the correct page appears!

 

The entire php site works fine in IE7, Opera, Safari, and Firefox, and the styling looks fine in IE6, but these links seem to be the only problem.

 

Thank you in advance for your help!! 

All right, another game of 20 guesses.  ::)

 

The difference between the popular game of 20 questions and the game of 20 guesses is, in the game of 20 questions, the clues help narrow down the questions to find the answer. In a game of 20 guesses there is no, minimal, or incorrect information to work with so the guesses are just all over the place and the game takes a lot longer to find the answer.

Hello everybody, and thanks for the quick replies.  Very sorry about the error on my part!  When I wrote the post it was hectic as the police were just wrapping up.  God it takes so long to draw one of those chalk body outlines.  Anyway... ;D

 

The code for the links is as follows:

<div id="usernameDiv"><table width="751" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td width="81"> </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>
  <tr>
    <td valign="top"> </td>
    <td> </td>
    <td> </td>
    <td><a href="SELLform.php"><img src="Images/saleTag.png" alt="sale" width="58" height="39" align="right" /></a></td>
    <td><a href="SELLbuyer.php"><img src="Images/shoppingCart.png" width="48" height="54" alt="shopping Cart" /></a></td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
      </table>
      </div>

 

The relevant CSS code is as follows:

#usernameDiv {
position: relative;
z-index: 7;
top: 0px;
height: 75px;
width: 90%;
text-align: left;
padding-left: 5%;
padding-right: 5%;
}
.leftLinks {
font-size: 13px;
color: #FEE5D4;
}
.rightLinks {
font-size: 12px;
color: #FEE5D4;
}
.usernameHeader {
font-size: 21px;
}
.usernameLink {
font-size: 15px;
color: #FFF;
}

 

At first I had the suspicion that the .png file used as my header was causing problems with IE6.  However, one of the links to the 'viewfriends.php' was working.  I spent the rest of the day googling and found a temporary solution from the following article: http://www.webmasterworld.com/html/3729894.htm. 

 

By commenting out the codepage from the meta section the links seem to work:

 

<!-- <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> //-->

 

I added the following code directly above the DOCTYPE to declare the codepage:

header("content-type: text/html; charset=UTF-8");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

I am still new to php and want to make sure this is a legitimate solution to my problem.  While the links are now functioning, I want to make sure commenting out the codepage in that manner is valid, and SECURE.  Any advice on this matter is greatly appreciated!

 

Thanks again for your help!

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.