Page 1 of 1

possable to marque the tittle?

Posted: Mon Mar 19, 2007 6:17 am
by gaogier
Would it be possable to marque the tittle, mabey, change the title when someone loads a page, but using the include tags, (change the head of the html code)?

Posted: Mon Mar 19, 2007 6:34 am
by mikeq
You can change the html title with php.

Your page needs to be a file with a .php extension or your webserver must be setup to interpret .html page as PHP

Code: Select all

$Title = "My Title";

?>
<html>
<head>
<title><?=$Title?></title>
</head>
Is one way to do it.

Posted: Mon Mar 19, 2007 6:37 am
by gaogier
so, if i include the header on each page, i can just use that page, and then when i link it up with, contact us, it will be different to the home page?


my website is php 5 + (the latest version) just updated all, mysql, php, perl, ect

Posted: Mon Mar 19, 2007 10:04 am
by John Cartwright
viewtopic.php?t=65205 may be of interest