well ive tried a few things and im still confused.
Page using template.php
<?php
// main page
include('template.php');
HEAD("Home");
?>
template.php
<?php
// PHP Template file for ganey.co.uk
//the following goes up to the main div, allowing content to be writen in
function HEAD($title,$head) {
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />
<title>Ganey.co.uk - " . $title . "</title>
<link type=\"text/css\" rel=\"stylesheet\" href=\"../css/style.css\">
" . $head . "
</head>
<body>
<div class=\"menu\">
<ul>
<li><a href=\"../tweak\">Windows Tweak Guide</a></li>
<li><a href=\"../solar\">DIY Solar</a></li>
<li><a href=\"\">Item 3 (long)</a></li>
<li><a href=\"\">Item 4</a></li>
</ul>
<br clear=\"left\">
</div>
<div id=\"main\">";
// END function for HEADERS
};
even if i try to parse 2 parameters to the function with
HEAD("bla bla bla","bla bla");
it still breaks