Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Or simpler, create a variable that will hold the page name in eache page you want custom name.
And when you include the header, check for it
page1.php:
PHP Code:
$title="my super duper home page"; ... include("header.php");
header.php:
PHP Code:
$title=isset($title)?$title:"default super boring title for a not so boring page"; echo"<title>$title</title>";
That way, if header.php found a variable named "$title" it will use it content.
If not, it will use a default title.
__________________
Only a biker knows why a dog sticks his head out the window.
|