Forum Moderators: coopster
I use static .shtml files in my site with includes for menu, bottom and so on. I want to put all the header in a include but the content should not be static, because the <title> tag change on each article. Theres is a simple way to do that with a few lines of php? I can set a title variable on each page.
Thanks in advance
However, I found what I was searching in a site. Now my shtml pages have includes for top,menu and botton, with variable title:
<!--#set var="title" value="Variable Title" -->
<!--#include virtual="header.shtml"-->
<!--#include file="menu.shtml"-->
PAGE CONTENTS
<!--#include file="bottom.shtml"-->
The header.shtml have a <!--#echo var="title" --> in the middle and the bottom.shtml have 2 includes: one for a php script for comments and other for a php script which call the stats program
Thanks