Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/272555-php-template-support-and-tips/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.