I am using a blogging program called MovableType. I've read from a lot of sources that using PHP to create templates was much easier than using straight HTML. I searched and found how to create a PHP based template. I did the following:
index.php
<?php
$MainPage = "template.php"; // Main Template File
$Content = "./page"; // Location of Content
$PageExtension = ".php"; // What comes at the end of the x...
$default = "content.php";
require ("template.php");
?>
template.php
has HTML
this calls content.php (where my blog shows up)
<?php
if(!$x) {
include("$default");
} else {
include("$x"); }
?>
this calls sidebar.php (where my sidebar information shows up)
<?php
require("sidebar.php")
?>
I have read about dynamic inclusion
<a href="index.php?x=yourfilename.php>
I want to be able to use this so when I click on a link in the sidebar it will show up where my content.php shows up.
journal From this link you will see that I used the above in my sidebar except it does not show up where my content.php is.
Is there a better way, easier way, or have I just gotten it all wrong? Any help would be greatly appreciated.