Thank you for getting back to me.
<?
$mytitle="test1";
?>
<HEAD>
<TITLE><? echo $mytitle ?></TITLE>
</HEAD>
I got this one but I just want it the other way around. Getting the content of the title tag into a php variable.
I'm using a dreamweaver template. the only not protected area in the head section is the title. Otherwise suggested function would work as well.
any other ideas how to do it. in java there is a variable called document.title i believe.