Re: how to set font colors

From: Date: Sun, 14 Oct 2001 10:38:11 +0000
Subject: Re: how to set font colors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71027@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To embed HTML in PHP you have 2 options. 1) drop out of PHP and put variables in as <?=&var?> (= is shorthand for echo and you dont need a ; at the end). <? ... php stuff here ... ?> <tag><?=$var?></tag> <? .... more php stuff ... ?> 2) use echo and put \ before " echo "<colour=\"red\">".$var."</font>". It sounds like you need to go through a basic tutorial, or better still get a book (Beginning PHP4 published by wrox is how I learnt most of what I know). At 06:52 A 14/10/01, Regis Philbin wrote: >I'm trying to modify some font collors. The author has indicated that I just >need to insert standard markup tags. Below, is the unmodified code. > > >echo " > ><dl><dt><b>$user[0]</b>&nbsp;&nbsp;$mailadd&nbsp;$urladd&nbsp;&nbsp;($user[3 >]) > <dt><dd>$user[4]</dd>\n</dl>"; > > > >the normal font tags like the example below return an error. ><font color="#FFFFFF">$user[0]</font> > >Is this done differently in php? > > > >-- >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 -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQA/AwUBO8ldBP4H8PnbFwvHEQL/xgCdEg5XBSyjhnCLsNDSa1bfx5EOGUUAoPE0 3xDg0Pu5gsWTDkrC3JOeQ8lt =2FQl -----END PGP SIGNATURE-----

« previous php.general (#71027) next »