You would do
<?
$title = "some title here";
?>
<HTML>
<Head><Title><? echo "$title"; ?></Title></Head>
or
<?
$title = "some title here";
echo "<Title>$title</Title>";
?>
Hope that helps
Sheridan
----- Original Message -----
From: jessica lee tishmack <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:50 AM
Subject: [PHP] set var in PHP clarified
> Thanks for the prompt replies...but I think I should clarify...
>
> In regular html, I would do this:
>
> <!--#set var="TITLE" value="some title here"-->
> <!--#include virtual="/include/header.html" -->
>
> and header.html would have in it (among other things):
>
> <title><!--#echo var="TITLE" --></title>
>
> So, the title of the webpage would be "some title here"...
>
> How can I accomplish the same thing in PHP?
>
> Thanks,
> Jessica
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]