A while ago I was using a page system where my main template had this code in the body of it.
PHP Code:
<?php include("content.inc"); ?>
Which was set up to put specific html from another page into that one.
The "content.inc" file had code like this
PHP Code:
<?php
if(!$content) include("includes/index.php");
if($content == about) include("includes/about.php");
?>
so if i clicked on a click a link with
HTML Code:
index.php?content=about
It would display the file from about.php within my index.php
I have tried to use this tonight and it is not working. Have I lost my mind? lol
|