devilsvein Posted December 31, 2012 Share Posted December 31, 2012 Hey guys, i decided to create a template which consists of my banner, css sheets, background and a menu bar! Now I want this to be shown on every page.....which is what its doing. for example I have on a page of mine whydonateblood.php <?php <?php session_start(); require "outerheader.php"; require "corefolder/enginecore.php"; ?> Just displaying that out on a page shows the background navigation etc. In simple terms the header template is shown! (so proud of myself! ) So now I want to actually start on the content of the page. I did.... <?php session_start(); require "outerheader.php"; require "corefolder/enginecore.php"; echo "<table width='500px' bgcolor='white'> <tr><td>HI</td></tr> </table>"; ?> But the table starts BELOW the last section of the header... to describe my page...i have a banner going across at the top... a navigation bar on the left hand side. and background in well background the header page consists of a container....... <body> <div align="center"><img src=background.jpg class='bg'></div> <div class="container"> <div class="bannimage"> <img src='newbann.png' /> </div> <div class="mainmenu"> <?php echo displayMenu(); ?> </div> </div> </body> so my question is how can I get the contents of my page....in the correct position in my header template. Quote Link to comment https://forums.phpfreaks.com/topic/272555-php-template-support-and-tips/ 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.