folks I am hopefully someone here can assist me.
I am trying to have the header template include the same header file that I use on the rest of my site.
If I put:
include('include/header.php');
in the header template, the code looks like it should in my web browser. However, when I view the source it seems that instead of inserting the code below the <BODY> tag, it has inserted it at the very top of the page ... even before the DTD declaration.
Alternately, if I make all the code in the include file the value of the variable $header, ( i.e. $header = "all html, php stuff here"; ) then the code shows up in the correct space, but it wont let me include any other files from that one.
Does anyone know what I might be doing incorrectly? I can't seem to figure out why the code shows up above the <HTML> tag, etc ...
any and all help is most appreciated. Feel free to email me if you need any specific information.
Thanks
Gordon
[email protected]
I am trying to have the header template include the same header file that I use on the rest of my site.
If I put:
include('include/header.php');
in the header template, the code looks like it should in my web browser. However, when I view the source it seems that instead of inserting the code below the <BODY> tag, it has inserted it at the very top of the page ... even before the DTD declaration.
Alternately, if I make all the code in the include file the value of the variable $header, ( i.e. $header = "all html, php stuff here"; ) then the code shows up in the correct space, but it wont let me include any other files from that one.
Does anyone know what I might be doing incorrectly? I can't seem to figure out why the code shows up above the <HTML> tag, etc ...
any and all help is most appreciated. Feel free to email me if you need any specific information.
Thanks
Gordon
[email protected]
Comment