exelGram Posted April 26, 2009 Share Posted April 26, 2009 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!! Quote Link to comment https://forums.phpfreaks.com/topic/155747-php-links-from-user-profile-page-not-working-without-refresh/ Share on other sites More sharing options...
premiso Posted April 26, 2009 Share Posted April 26, 2009 Without the relevant code we can provide no assistance. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/155747-php-links-from-user-profile-page-not-working-without-refresh/#findComment-819817 Share on other sites More sharing options...
PFMaBiSmAd Posted April 26, 2009 Share Posted April 26, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/155747-php-links-from-user-profile-page-not-working-without-refresh/#findComment-819830 Share on other sites More sharing options...
TGWSE_GY Posted April 26, 2009 Share Posted April 26, 2009 If you post the code from the script that is giving you this issue we could better help you figure out what the problem is. Since your question is very broad, and so are the solutions without the code. Quote Link to comment https://forums.phpfreaks.com/topic/155747-php-links-from-user-profile-page-not-working-without-refresh/#findComment-819849 Share on other sites More sharing options...
exelGram Posted April 27, 2009 Author Share Posted April 27, 2009 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... 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! Quote Link to comment https://forums.phpfreaks.com/topic/155747-php-links-from-user-profile-page-not-working-without-refresh/#findComment-820113 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.