Re: Variable substitution in HTML

From: Date: Wed, 17 Oct 2001 20:38:42 +0000
Subject: Re: Variable substitution in HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71398@lists.php.net to get a copy of this message
its all programming preff, look into templates, one called smarty i hear is good, another is to continue doing <html> <body> <p> My Name is <?php echo $myname; ?> </p> </body> </html> I think this sucks, but its personal pref. I like <?php echo " <html> <body> <p>My Name Is $myname </p> </body> </html> "; ?> -- Chris Lee lee@mediawaveonline.com "Barlow" <barlow@cedara.com> wrote in message news:20011017183535.42490.qmail@pb1.pair.com... > Is there a simple way of converting PHP variables in HTML? > e.g. I have HTML: > > <P> My name is $myname </P> > > Is there a conversion method that doesn't require further changes to the > HTML (to avoid adding <?= $myname ?> each time, for instance), and > that doesn't require knowledge of variable names (e.g. ereg_replace). > > In a Unix shell I once sourced an HTML file, that led to correct shell > variable substitution - but what about under Windows ? > > Thanks, > Chris > >

« previous php.general (#71398) next »