Hello, I´m redesigning my website and actualy i found a problem , if you enter here http://www.soundzet.org/news/forgotpass.php you can see only the background but actualy the code is this one, <? session_start(); include 'menu.php'; include "the-includes/session.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" xml:lang="en-gb" lang="en-gb" > <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="<?=$keywords?>"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="<?=$description?>"> <meta name="verify-v1" content="dp0ZpACbZYCXfR1+E6lsa/uEdwNFRSrX39ahrSPBGbk=" /> <meta name="keywords" content="<?=$keywords?>"> <meta name="blogcatalog" content="9BC9251836" /> <meta name="verify-iw" content="IW501663624825430" /> <title><?php if($title2) { echo $title2." - "; } echo $title;?></title> <link rel="search" type="application/opensearchdescription+xml" title="Soundzet" href="http://www.soundzet.com/the-includes/music.xml" /> <script type="text/javascript"> function addEngine() { if (window.external && ("AddSearchProvider" in window.external)) window.external.AddSearchProvider("http://www.soundzet.com/the-includes/music.xml"); else alert("Your Browser don't have this plugin!"); } </script> <link href="index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" /> <link href="index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" /> <link href="templates/jxtc_escene/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" href="templates/jxtc_escene/css/template.css" type="text/css" /> <script type="text/javascript" src="media/system/js/mootools.js"></script> <script type="text/javascript" src="media/system/js/caption.js"></script> <link rel="stylesheet" href="templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="templates/jxtc_escene/css/template.css" type="text/css" /> <link rel="stylesheet" href="templates/jxtc_escene/css/font-normal.css" type="text/css" /> <link rel="stylesheet" href="templates/jxtc_escene/css/fonts/arial.css" type="text/css" /> <script language="javascript" type="text/javascript"> var menuSpeed = 300; var mooStyle = 'Fx.Transitions.Bounce.easeOut'; </script> <script language="javascript" type="text/javascript" src="templates/jxtc_escene/js/moodropin.js"></script> <link rel="stylesheet" href="templates/jxtc_escene/css/menus/moodropin.css" type="text/css" /> <!--[if lte IE 7]> <link href="templates/jxtc_escene/css/ie.css" rel="stylesheet" type="text/css" /> <![endif]--> <!--[if lte IE 6]> <link href="templates/jxtc_escene/css/ie6.css" rel="stylesheet" type="text/css" /> <![endif]--> <!--[if IE 6]> <script src="templates/jxtc_escene/js/DD_belatedPNG_0.0.6a-min.js"></script> <script> DD_belatedPNG.fix('#wrapper'); /* EXAMPLE */ /* string argument can be any CSS selector */ /* using .png_bg example is unnecessary */ /* change it to what suits you! */ </script> <![endif]--> <!-- Template Admin CSS Variables Defined ---> <style type="text/css"> body {font-size: 11px;} #content .contentheading {background:#B7DF64; padding:3px 0 3px 0; vertical-align:middle;display:block; width: 100%;color: #fff;height:24px;line-height:24px;font-weight:bold;letter-spacing: -0.5px;} .componentheading { background:#B7DF64; color: #fff; padding:6px 6px 12px 6px;height:24px;line-height:28px;font-weight:bold;letter-spacing: -0.5px;margin-bottom: 8px;} #topmenu li a{font-size:14px; color:#F9E3A7;} #topmenu li:hover a, #topmenu li.sfhover a{color:#B7DF64;} #topmenu li ul li a, #topmenu li ul li:hover a {color:#B7DF64;} a.mainlevel-top { font-size:14px; color:#C2C2C2;} a.mainlevel-top:hover {color:#FFFFFF;} </style> <script src="templates/jxtc_escene/js/scripts.js" type="text/javascript"></script> <style type="text/css"> #footermods .moduletable{width:307.33333333333px;} #user10,#user11,#user12,#user13,#user14{width:327.33333333333px;} </style> </head> <body class="bg_bkg9"> <?php if (!isset($_GET[search]) OR $_GET[search] == "") { // homepage :D ?> <? include 'menu.php'; session_start(); include("the-includes/session.php"); $ref_url = $_SERVER['REQUEST_URI']; ?> <!-- BEGIN IE6 WARNING --> <!--[if lte IE 6]> <style type="text/css"> #slitp {padding: 10px;border: 3px solid #000099;margin: 8px 0;background: #DFEFFF;color: #000;font-family: Arial, Helvetica, sans-serif;font-size: 14px;line-height: 15px;} #slitp h1 {padding: 0px 0px 5px 0px;text-transform: uppercase;text-align: center;border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: #000099;font-size: 16px;color: #000099;} #slitp p {margin: 10px 0px 0px 0px;text-align: justify;} #slitp p a {font-weight: bold;color: #000099;} </style> <div id="slitp"> <h1>Your browser is outdated and open to serious security issues!</h1>You are using the long outdated Internet Explorer 6 browser. This site may not display or work correctly and you are putting your data and privacy at risk. To get the most out of the web, upgrade to the<a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx" title="Download the latest version of Internet Explorer for free directly from Microsoft" alt="Download the latest version of Internet Explorer for free directly from Microsoft" "target="_blank"> new version of Internet Explorer</a> right now. If you are at work and you see this message, talk to your IT department and ask them to upgrade the browser to secure your company data. <p><a title="Stop Living In the Past" href="http://www.stoplivinginthepast.com" target="_blank">Click here to learn more about why you should upgrade your browser.</a></p> </div> <![endif]--> <!-- END STOP LIVING IN THE PAST SCRIPT --> <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script> <![endif]--> <div id="pagewrapper"> <div id="wrapper"> <div id="innerwrap"> <!-- /Header Starts --> <div id="header"> <!-- /Logo Starts --> <div id="headermiddlewrap"> <div id="logowrap"> <div class="logo"><a href="/escene"><img src="templates/jxtc_escene/images/logo.png" /></a> <div class="tagtext">over 3 billons songs and counting</div></div> </div> <!-- /Menu Starts --> <div id="topwrap"> <table width="100%" border="0" cellpadding="0" cellspacing="1"><tr><td nowrap="nowrap"></td></tr></table> </div> <div id="newsflash"> <a href="http://www.twitter.com/soundzet" target="_blank"> <img src="images/democontent/twit.png" style="margin-top:5px; margin-left:150px;" > </a> </div> <!-- /Menu Ends--> </div> <!-- /Logo Ends--> <!-- /TopHeader Starts --> <div id="headertopwrap"> <div id="menuwrap"> <div id="topmenu"> <ul class="menu"> <? if(!$session->logged_in){ ?> <?=$guest?> <? } else { ?> <?=$logged?> <? } ?> </ul> </div> </div> <!-- /search Ends--> <div id="logwrap"> <a id="login_link" href="#">members login | register</a></div> <!-- /loginbutton Ends--> </div> <!-- /TopHeader Ends--> <!-- /Login Panel Starts --> <? if(!$session->logged_in){ ?> <div id="memberarea" style="overflow: hidden; display: block; visibility: hidden; opacity: 0; height: 0px;"> <div id="loginwrap"><form action="process.php" method="post" name="login" id="form-login" > <ul class="loginposition"> <li> <label for="modlgn_username">Username</label> <input id="user" type="text" name="user" class="inputbox" alt="username" size="35" /> </li> <li> <label for="modlgn_passwd">Password</label> <input id="pass" type="password" name="pass" class="inputbox" size="35" alt="password" /> </li> <li> <input type="submit" name="Submit" class="button" value="Login" /> </li> <li class="pad"> <a href="forgotpass.php"> Forgot your password?</a> </li> </ul> <input name="ref_url" value="<?=$ref_url?>" type="hidden"><input name="sublogin" value="1" type="hidden"></form> </div> </div> </div> <? } else { ?> <div id="memberarea" style="overflow: hidden; display: block; visibility: hidden; opacity: 0; height: 0px;"> <div id="loginwrap"> <ul class="loginposition"> <li> <a href="#">You are already logged in.</a> </li> <li> </li> <li class="pad"> <a href="process.php"> Logout</a> </li> </ul> </div> </div> </div> <? } ?> <!-- /Login Panel Ends --> <!-- INset Starts --> <!-- /INset --> <!-- /Content Starts --> <div id="content"> <div id="topcontent-f"> <div id="topcurve"> <div id="breadcrumbs"> <div class="moduletable"> <span class="breadcrumbs pathway"> Home</span> </div> </div> <div id="searchwrap"> <div class="moduletable"> <form action="index.php" method="post"> <div class="search"> <input name="searchword" id="mod_search_searchword" maxlength="20" alt="Search" class="inputbox" type="text" size="20" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div> <input type="hidden" name="task" value="search" /> <input type="hidden" name="option" value="com_search" /> </form> </div> </div> </div> <!-- MainContent Starts --> <div id="maincontent"> <!-- component Starts --> <div id="mainbody" class="mainbody-white"> <div class="componentheading"> Forgot your Password? </div> <form action="process.php" method="post"> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane"> <? global $HTTP_POST_VARS,$HTTP_GET_VARS,$HTTP_SERVER_VARS,$HTTP_SESSION_VARS,$HTTP_COOKIE_VARS; /** * Forgot Password form has been submitted and no errors * were found with the form (the username is in the database) */ if($HTTP_SESSION_VARS['forgotpass']!=''){ /** * New password was generated for user and sent to user's * email address. */ if($HTTP_SESSION_VARS['forgotpass']){ echo ""; echo "<table align='left' border='0' bgcolor='#FFFFFF' cellspacing='4' cellpadding='8' width='100%' class='register_success'><tr><td><h2>New Password Generated</h2> <br><p>Your new password has been generated " ."and sent to the email <br>associated with your account. " ."<a href=\"index.php\">Back to Main Page</a>.</p></td></tr></table>"; } /** * Email could not be sent, therefore password was not * edited in the database. */ else{ echo ""; echo "<table align='left' bgcolor='#FFFFFF' border='0' cellspacing='4' cellpadding='8' width='100%' class='register_success'><tr><td><h2>New Password Failure</h2> <br><p>There was an error sending you the " ."email with the new password,<br> so your password has not been changed. " ."<a href=\"index.php\">Back to Main Page</a>.</p></td></tr></table>"; } unset($HTTP_SESSION_VARS['forgotpass']); } else{ /** * Forgot password form is displayed, if error found * it is displayed. */ ?> <tr> <? echo $form->error("user"); ?> <td colspan="2" height="40"> <p>A new password will be generated to you and sent to the email address<br> associated with your account, all you have to do is enter your username.</p> </td> </tr> <tr> <td height="40"> <label for="email" class="hasTip" title="E-mail Address::Please enter the e-mail address for your account.">E-mail Address:</label> </td> <td> <input name="user" value="<? echo $form->value("user"); ?>" type="text" class="required validate-email" /> </td> </tr> </table> <button type="submit" class="validate">Submit</button> <input type="hidden" name="subforgot" value="1"> </form> <? } ?> </div> <div class="mainbody-white-bottom"></div> <!-- /MainBody --> <!-- /component Ends --> </div> <!-- Right --> <!-- /Right --> <div class="clear"></div> </div> </div> <!-- /Content Ends--> </div> <!-- /InnerWrap --> </div> </div> <div id="footerwrap" style="background-color:#383838"> <div id="footermods"> <div id="user10"> <div class="moduletable"> <h3><span class="inner"><span class="first">user</span> 10</span></h3> <div class="modulecontent"> <div style="width:300px;border-right:1px dotted #757575"> <div style="width:270px; border-bottom:1px dotted #757575; height:43px; padding-bottom:7px; margin-bottom:10px; "> <div style="float:left; width:108px; "><img src="images/democontent/1.gif" width="108" height="40" style="border:1px solid #444444;"/></div> <div style="float:left; font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height:135%; width:150px; margin-left:12px; color:#cccccc;"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit era. Aliquam erat fusce volutpat. </div> </div> <div style="width:270px; border-bottom:1px dotted #757575; height:43px; padding-bottom:7px; margin-bottom:10px; "> <div style="float:left; width:108px; "><img src="images/democontent/2.gif" width="108" height="40" style="border:1px solid #444444;"/></div> <div style="float:left; font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height:135%; width:150px; margin-left:12px; color:#cccccc;"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit era. Aliquam erat fusce volutpat. </div> </div> <div style="width:270px; border-bottom:1px dotted #757575; height:43px; padding-bottom:7px; margin-bottom:10px;"> <div style="float:left; width:108px; "><img src="images/democontent/3.gif" width="108" height="40" style="border:1px solid #444444;"/></div> <div style="float:left; font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height:135%; width:150px; margin-left:12px; color:#cccccc;"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit era. Aliquam erat fusce volutpat. </div> </div> </div></div> </div> </div> <!-- /user10 --> <div id="user11"> <div class="moduletable"> <h3><span class="inner"><span class="first">user</span> 11</span></h3> <div class="modulecontent"> <div style="width:300px;border-right:1px dotted #757575"> <div style="width:270px; color:#ebebeb !important; line-height:150%; padding-bottom:8px; "> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce dictum sagittis sapien. Aliquam erat volutpat. Nulla facilisi. Ut purus neque, condimentum nec, auctor eget, semper ut, enim. Vestibulum sem tellus, vestibulum a, vehicula ut, feugiat id, libero. <br/><br/> Ut velit urna, tempor non, porta et, scelerisque gravida, dolor. Cras lectus nisl, pulvinar eget, vulputate et, fermentum quis, tellus. Proin magna. Proin quam. Donec ullamcorper vehicula neque. </div> </div></div> </div> </div> <!-- /user11--> <div id="user12"> <div class="moduletable"> <h3><span class="inner"><span class="first">user</span> 12</span></h3> <div class="modulecontent"> <img src="images/democontent/user12.gif" style=margin-bottom:10px;"> <div class="user1style6" style="padding-top:2px; color:#ebebeb !important; line-height:150%; padding-bottom:8px; "> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce dictum sagittis sapien. Aliquam erat volutpat. Nulla facilisi. </div></div> </div> </div> <!-- /user12--> <!-- /UserMods --></div> <!-- /Footer --> </div> <!-- /FooterWrap --> <div id="bottomfoot"> <div class="bottomfootinner"> <div class="foot"> Foot <!-- /Footer--> </div> <div class="legal"> Legal <!-- /Legals--></div> </div> </div> <??> </div> <!-- / Outermost Block End --> <?php // end homepage :D }else{ if(!$_GET[page]) { include("the-includes/searchtracking.php"); } include("the-template/main.inc.php"); } ?> </body> </html> PHP: why i m not seeing anything of the website? i my old file i dont know why the file does not have <html> <head> </head> <body> </body> </html> How can i fix this? Thank you alot
Can you enable php errors on the page? Given how the page stops at the body tag even though you have end body and html tag I am guessing there is a php phasing error happening. I also notice that you call session_start() in the beginning of the file and again after the menu.php include. I think you should only call it once, in the beginning of the page.