Re: set var in PHP clarified
| From: | Jon Yaggie | Date: | Wed, 18 Jul 2001 15:58:04 +0000 |
| Subject: | Re: set var in PHP clarified | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58460@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "jessica lee tishmack" <jlt29707@sci.tamucc.edu>
To: <php-general@lists.php.net>
Sent: Wednesday, July 18, 2001 10:50 PM
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" -->
assign like this
$TITLE = "some text here";
>
> and header.html would have in it (among other things):
>
> <title><!--#echo var="TITLE" --></title>
use like this
echo $TITLE;
or
print"$TITLE";
if this is in html makde sure you have php tags arround it <? ?>
>
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net