Re: Variable substitution in HTML

From: Date: Wed, 17 Oct 2001 21:26:10 +0000
Subject: Re: Variable substitution in HTML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-71408@lists.php.net to get a copy of this message
> I think this sucks, but its personal pref. I like > > <?php > echo " > <html> > <body> > <p>My Name Is $myname </p> > </body> > </html> > "; > ?> > Thanks Chris. I found that 'echo' gave me some problems, but in reading user comments in the 'print' man-page I came to this solution: HTML file: <?PHP print <<< EOF whatever you want, including single & double quotes plus $variables are in scope and resolved EOF; ?> and then in PHP: $variable=blah; include("path-to-html");

« previous php.general (#71408) next »