Lamez Posted December 13, 2007 Share Posted December 13, 2007 Alright here is the thing, I have a site that is coded in PHP, well it outputs in HTML. If you are logged in it will output something, but if you are not it will out something else. here is my problem, on my website if you are not logged in some pages do not appear right here are the pages: http://www.lamezz.com/info/info.php http://www.lamezz.com/info/trlogin.php http://www.lamezz.com/user/members.php but if you are logged it, it looks great. here is the HTML output for the first link: http://www.lamezz.com/info/info.php <!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="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../style/default.css"/> <link rel="shortcut icon" href="../style/img/favicon.ico"> <title>Lamez's Corner - Information</title> </head> <body> <div class="body"> <div class="logo"><img src="../style/img/logo.png" alt="Lamez's Corner Logo" border="0"/></div> <div class="bar"></div> <div class="navc"> <div class="headb">Viewing Site</div> <p> Lamez is <font color="#FF0000">Offline</font><br />Registered Members: 0 <br />Guests: 1<br /><br /></p> <div class="headb">Navigation</div> <a href="../index.php"><img src="../style/img/home.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Home</a> <a href="../login.php"><img src="../style/img/login.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Login</a> <a href="../register.php"><img src="../style/img/reg.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Register</a> <a href="../info/info.php"><img src="../style/img/info.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Info</a> <div class="headb">Quick Links</div> <a href="../user/forgotpass.php">Forgot Password</a></div> </div> <div class="box"> <h2>Info Area</h2> <a href="trlogin.php">Having Trouble Logging In? </a><br /> </div> <div class="footer"> Site Template & Original Site Content<br /> © 2007-2008 <a href="mailto:wizkid916@yahoo.com">James Little</a> </div> </div> </body> </html> here is the code for the second link: http://www.lamezz.com/info/trlogin.php <!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="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../style/default.css"/> <link rel="shortcut icon" href="../style/img/favicon.ico"> <title>Lamez's Corner - Information</title> </head> <body> <div class="body"> <div class="logo"><img src="../style/img/logo.png" alt="Lamez's Corner Logo" border="0"/></div> <div class="bar"></div> <div class="navc"> <div class="headb">Viewing Site</div> <p> Lamez is <font color="#FF0000">Offline</font><br />Registered Members: 0 <br />Guests: 1<br /><br /></p> <div class="headb">Navigation</div> <a href="../index.php"><img src="../style/img/home.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Home</a> <a href="../login.php"><img src="../style/img/login.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Login</a> <a href="../register.php"><img src="../style/img/reg.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Register</a> <a href="../info/info.php"><img src="../style/img/info.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Info</a> <div class="headb">Quick Links</div> <a href="../user/forgotpass.php">Forgot Password</a></div> </div> <div class="box"> <h2>Having Trouble Logging In? </h2> <div class="box"> 1. Make sure you have <a href="../register.php">registered</a> an account.<br> 2. Attempt to <a href="../login.php">login</a>.<br> 3. If you login, but are not redirect, and cannot view the <a href="../user/members.php">members area</a><br> then choose a browser below and follow the instructions.<br> <br> <br> <a href="trlogin.php?browser=ff">FireFox</a> or <a href="trlogin.php?browser=ie">Internet Explorer 6</a> </div> <div class="footer"> Site Template & Original Site Content<br /> © 2007-2008 <a href="mailto:wizkid916@yahoo.com">James Little</a> </div> </div> </body> </html> what am I doing wrong in the coding for the pages to look like poop? thanks guys, and I have gone over these pages time and time again. Some one with fresh eyes would help. and here is the last page: http://www.lamezz.com/user/members.php Quote Link to comment https://forums.phpfreaks.com/topic/81465-solved-template-messes-up/ 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.