Mentally Unstable Tugboat Captain
Posts: 797
Name: Chad
Location: /usr/bin/perl
|
I've found another way that is really simple as well, not sure about the whole security issue though...
Build your layout. Wherever you want your page content to be, put the following code:
PHP Code:
<?php
if(!$id){ $id="home";} // This line signifies the default if no other id is selected
if($id == home) include("news/news.txt"); // The first part says what the id is, and the second part says what to include
if($id == siteinfo) include("info/index.html");
if($id == chat) include("chat/index.php");
?>
Get the idea? When making your link table, just make stuff that says to link to "index.php?id=whatever". Hope this helps.
__________________
He's baaaaaaaack....
|