Thread: Box Help
View Single Post
  #3 (permalink)  
Old Mar 2nd, 2006, 19:45
craig's Avatar
craig craig is offline
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Box Help

It is an iframe.
You DO NOT need to use iframes. They are not the best tool to use, especially when it is so easy to change content.
Have you heard of PHP includes???
They are great, and save a hell of a lot of time.
Say if the code is exactly the same on all of your pages, and the only thing that changes is the centre content, you can put all of the code in one file, and just use the php include to include it into the webpage. Below is what one of my pages looks like as raw PHP.
PHP: Select all

 
<?php include ('includes/header.php'); ?>
 
<div id="contentleft">
<?php include ('includes/navigation.php'); ?>
</div>
<div id="contentcenter">
 
CONTENT GOES HERE
 
</div>
<?php include ('includes/footer.php'); ?>
As you can see on this particular page I have 3 files that I call from the server. The Header and Footer are EXACTLY the same throughout my site since I include these. Therefore if i needed to change something at the bottom of a page I would not need to change EVERY SINGLE page, just ONE file. This saves a lot of time and also means you can put your content in one place without messing up your tables etc.
I hope you find this useful and use this. I started off coding each page, and when I needed to change something i would spend ages going through each file repeatedly.

Craig

Last edited by craig; Mar 2nd, 2006 at 19:55.
Reply With Quote