squiblo Posted July 29, 2009 Share Posted July 29, 2009 the very last image next to the closing html tag is not linking, it looks fine to me but is not working. the image id=clickupload if you cant find it. <?php session_start(); if(!isset($_SESSION['myusername'])){ header("location:notloggedin.php"); exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><?php echo ucwords(strtolower($_SESSION['myusername'])); ?> - Profile</title> <meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com"> <style type="text/css"> div#container { width: 900px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } </style> </head> <body bgcolor="#E6E6E6" text="#000000"> <div id="container"> <div id="wb_Shape1" style="position:absolute;left:54px;top:41px;width:793px;height:125px;z-index:2" Align="center"> <img src="/Images/header_img.jpg" id="Shape1" align="top" alt="" title="" border="0" width="793" height="125"></div> <div id="wb_Text1" style="position:absolute;left:684px;top:55px;width:151px;height:14px;z-index:7" align="right"> <font style="font-size:13px" color="#FFFFFF" face="Arial">You are logged in as:</font><br> <font style="font-size:15px" color="#FF0000" face="Arial"><?php echo ucwords(strtolower($_SESSION['myusername'])); ?></font></div> <div id="logout" style="position:absolute;left:775px;top:130px;width:64px;height:23px;z-index:12" align="center"><a href="/logout.php"> <img src="/Images/logout.png" id="logout" align="top" alt="logout" title="" border="0" width="64" height="23"></a></div> <div id="wb_Text2" style="position:absolute;left:60px;top:85px;width:325px;height:72px;z-index:3" align="left"> <font style="font-size:70px" color="#FFFFFF" face="impact"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">SQUIBLO</a></font></font></div> <div id="menubar" style="position:absolute;left:54px;top:168px;width:793px;height:30px;z-index:13" align="center"> <img src="/Images/header_img.jpg" id="menubar" align="top" alt="" title="" border="0" width="793" height="30"></div> <div id="wb_Text3" style="position:absolute;left:60px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">Profile</a></font></font></div> <div id="wb_Text4" style="position:absolute;left:123px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Friends</a></font></font></div> <div id="wb_Text5" style="position:absolute;left:195px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Photos</a></font></font></div> <div id="wb_Text6" style="position:absolute;left:262px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">Mail</a></font></font></div> <div id="wb_Text7" style="position:absolute;left:610px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">Search</a></font></font></div> <div id="wb_Text8" style="position:absolute;left:680px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">Settings</a></font></font></div> <div id="wb_Shape3" style="position:absolute;left:54px;top:200px;width:793px;height:1300px;z-index:10" align="center"> <img src="/Images/body_img.jpg" id="Shape2" align="top" alt="" title="" border="0" width="793" height="1300"></div> <div id="apps" style="position:absolute;left:754px;top:169px;z-index:14" align="center"> <style> ul.cssMenu ul{display:none} ul.cssMenu li:hover>ul{display:block} ul.cssMenu ul{position: absolute;left:-1px;top:98%;} ul.cssMenu ul ul{position: absolute;left:98%;top:-2px;} ul.cssMenu,ul.cssMenu ul { margin:0px; list-style:none; padding:0px 2px 2px 0px; background-color:#ffffff; background-repeat:repeat; border-color:#AAAAAA; border-width:1px; border-style:solid; } ul.cssMenu table {border-collapse:collapse}ul.cssMenu { display:block; zoom:1; float: left; } ul.cssMenu ul{ width:64.05px; } ul.cssMenu li{ display:block; margin:2px 0px 0px 2px; font-size:0px; } ul.cssMenu a:active, ul.cssMenu a:focus { outline-style:none; } ul.cssMenu a, ul.cssMenu li.dis a:hover, ul.cssMenu li.sep a:hover { display:block; vertical-align:middle; background-color:#ffffff; border-width:0px; border-color:#6655ff; border-style:solid; text-align:left; text-decoration:none; padding:4px; _padding-left:0; font:normal 11px Verdana; color: #444444; text-decoration:none; cursor:default; } ul.cssMenu span{ overflow:hidden; } ul.cssMenu li { float:left; } ul.cssMenu ul li { float:none; } ul.cssMenu ul a { text-align:left; white-space:nowrap; } ul.cssMenu li.sep{ text-align:center; padding:0px; line-height:0; height:100%; } ul.cssMenu li.sep span{ float:none; padding-right:0; width:5; height:16; display:inline-block; background-color:#AAAAAA; background-image:none;} ul.cssMenu ul li.sep span{ width:80%; height:3; } ul.cssMenu li:hover{ position:relative; } ul.cssMenu li:hover>a{ background-color:#4792E6; border-color:#665500; border-style:solid; font:normal 11px Verdana; color: #ffffff; text-decoration:none; } ul.cssMenu li a:hover{ position:relative; background-color:#4792E6; border-color:#665500; border-style:solid; font:normal 11px Verdana; color: #ffffff; text-decoration:none; } ul.cssMenu li.dis a { color: #AAAAAA !important; } ul.cssMenu img {border: none;float:left;_float:none;margin-right:4px;width:16px; height:16px; } ul.cssMenu ul img {width:16px; height:16px; } ul.cssMenu img.over{display:none} ul.cssMenu li.dis a:hover img.over{display:none !important} ul.cssMenu li.dis a:hover img.def {display:inline !important} ul.cssMenu li:hover > a img.def {display:none} ul.cssMenu li:hover > a img.over {display:inline} ul.cssMenu a:hover img.over,ul.cssMenu a:hover ul img.def,ul.cssMenu a:hover a:hover img.over{display:inline} ul.cssMenu a:hover img.def,ul.cssMenu a:hover ul img.over,ul.cssMenu a:hover a:hover img.def{display:none} ul.cssMenu a:hover ul{display:block} ul.cssMenu span{ display:block; background-image:url(http://squiblo.com/Images/arrv_anim_1.gif); background-position:right center; background-repeat: no-repeat; padding-right:11px;} ul.cssMenu li:hover>a>span{ background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif); } ul.cssMenu a:hover span{ _background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif)} ul.cssMenu ul span,ul.cssMenu a:hover table span{background-image:url(http://squiblo.com/Images/arr_double_1.gif)} ul.cssMenu ul li:hover > a span{ background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif);} ul.cssMenu table a:hover span{background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif)} </style> <ul class="cssMenu cssMenum"> <li class=" cssMenui"><a class=" cssMenui" href="#"><span>Accessories</span><![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]--> <ul class=" cssMenum"> <li class=" cssMenui"><a class=" cssMenui" href="http://google.com">Music</a></li> <li class=" cssMenui"><a class=" cssMenui" href="http://google.com">Chat</a></li> <li class=" cssMenui"><a class=" cssMenui" href="/games.php">Games</a></li> <li class=" cssMenui"><a class=" cssMenui" href="http://google.com">Radio</a></li> <li class=" cssMenui"><a class=" cssMenui" href="/accessories.php">More...</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li> </ul> </div> <div id="wb_Shape3" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:11" align="center"> <?php session_start(); include("checklogin.php"); $username = $_SESSION['myusername']; $query = mysql_query("SELECT * FROM members WHERE username='$username'"); if (mysql_num_rows($query)==0) die("User not found!"); else { $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; echo "<img src ='$location' width='225' height='275'>"; } ?></div> <div id="wb_Shape5" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:10" align="center"><a href="/upload.php"> <img src="/profileimages/clickheretoupload.jpeg" id="clickupload" align="top" alt="" title="" border="0" width="225" height="275"></a></div> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/ Share on other sites More sharing options...
DanielHardy Posted July 29, 2009 Share Posted July 29, 2009 image shows up, just doesn't link? Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886034 Share on other sites More sharing options...
squiblo Posted July 29, 2009 Author Share Posted July 29, 2009 yes the image does show but does not link ---100th post --- Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886035 Share on other sites More sharing options...
DanielHardy Posted July 29, 2009 Share Posted July 29, 2009 so just showing up as image and not linking at all.Try putting a word after the img tag see if that will link? Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886038 Share on other sites More sharing options...
squiblo Posted July 29, 2009 Author Share Posted July 29, 2009 when i put a word after the image that word was shown and did link Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886044 Share on other sites More sharing options...
Ninjakreborn Posted July 29, 2009 Share Posted July 29, 2009 Run it through an xhtml parser. There is probably one or more broken tags that is causing the browser to render the xhtml improperly (making the link not work as intended). Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886048 Share on other sites More sharing options...
squiblo Posted July 29, 2009 Author Share Posted July 29, 2009 sorry but what does that mean, im new to all languages Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886052 Share on other sites More sharing options...
squiblo Posted July 29, 2009 Author Share Posted July 29, 2009 i changed i to this but it still doesnt works: <div id="wb_Shape5" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:10" align="center"><a href="/upload.php"> <?php echo "<img src='/profileimages/clickheretoupload.jpeg' id='clickupload' align='top' alt='' title='' border='0' width='225' height='275'>"; ?> </a></div> Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886060 Share on other sites More sharing options...
squiblo Posted July 29, 2009 Author Share Posted July 29, 2009 any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/167992-solved-strange-or-stupid/#findComment-886080 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.