quote:
Originally posted by Absorbation
I use ?id=home on my websites for the homepage it is a script that allowed a series of includes on a page, thus you dont have to update each page when you alter a design. The page extension must be in php.
Here is what I use on my websites:
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$id){ $id = $HTTP_GET_VARS['id']; }
if($id=="" or $id=="home"){
include("home.php");
}elseif($id=="asmiles"){
include("animatedsmiles/index.php");
}elseif($id=="backgrounds"){
include("backgrounds/index.php");
}elseif($id=="downloads"){
include("downloads/pafiledb.php");
}elseif($id=="dp"){
include("dp/index.php");
}elseif($id=="names"){
include("names/index.php");
}elseif($id=="smiles"){
include("smiles/index.php");
}elseif($id=="web"){
include("web.php");
}
?>
(that's part of msgstuff)
you add this where your page content begins and in the includes you add the other pages, but just the basic code and not all the html and head tags.
let me see if i understand this:: i create a template with this code in, so that the content is not in and it will be the actual style then save it as a .php file, then create the very basic coding of different pages ie it would just be::
code:
<div class="body">
content filler
content filler
content filler
</div>
saving this as content.php (and using the id as "content")
then for the link would i put <a href="?id=content">... yes?