I'm not really familiar with PHP, but I imagine the code would look something like this:
<!-- All your header stuff -->
<?php
if ($content){
require("$content");
} else {
require('defaultcontent'); // replace defaultcontent with whatever file.
}
?>
<!-- All your footer stuff -->
The above could be used for the index page. The following would be used for the links.
<a "href=www.domain.com/index.php?content=aboutme.con">About Me.</a>
Anyone else have any feedback on this. I just came up with this on the fly from the little I do know about PHP. I didn't test this.
Alcides. :rolleyes:
Alcides
Junior Poster in Training
54 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
Good point, Roberdin.
Alcides.
Alcides
Junior Poster in Training
54 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0