Tell me what you think of this template-parsing function.
Simply pass it the filename of the template and the $page variable as arguments. The $page is a GET variable passed from the original URL
i.e. http://www.yoursite.com/index.php?page=value
It reflects the filename of an include file with the filename <$page>.inc which would be the php code that displays the content of the page.
When creating your template, simply place <-- Main Body --> on its own line in your HTML template where you want the content to be displayed.
Chris