Syntax error when i ass Javascript to a header include.
Example:
function GetHeader2($title){
$string;
$string ='
<head>
<title>Name of Page - ' . $title . '</title> .. etc.. etc..
then in that same header I have some complex Javascript, it apears to be recognizing some of the Javascript code as PHP and giving me a php error. Even though if I take the javascript out I get no such error, I think it's the syntax or the ' and " that are confusing it, anyone know what I am talkin about ?? I thought maybe I could just include a .js file or somethin like
print "document.write('foo.js')";
maybe in the actual content page that calls the header?? I know.. I am very confusing sigh I am used to asp..