Re: set var in PHP clarified

From: Date: Wed, 18 Jul 2001 16:05:13 +0000
Subject: Re: set var in PHP clarified
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58462@lists.php.net to get a copy of this message
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 <jlt29707@sci.tamucc.edu> To: <php-general@lists.php.net> 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: 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

« previous php.general (#58462) next »