You are here: Change color in php message « PHP Programming Language « IT news, forums, messages
Change color in php message

Posted by rukkie on 08/10/06 12:26

I'm having trouble to change the color of a part of a message I'm
putting together in a PHP script.
The built up of the message is as follows :

$message = "Update for Request number: " . $nbr . "\n" .
"Project name: " . $prjname . "\n" .
$yournamestring . $yrname . "\n" .
"Your email address:" . $yremail . "\n" .
"Address on site:". $osaddr . "\n" .
.... ;

Now I want for instance change the color of the entry "Your email
address" and if possible also of the string represented by $yremail (or
only 1 of both), if a certain condition is true (e.g this item is
changed during an update).

I tried several things, such as
"<FONT color=\"red\">Your email address: </FONT>" .
$yremail . "\n" .

but in the email received appears litteraly all what is noted, but no
text in red.

Probably I'm using the wrong quotes or on the wrong place .... Has
anyone already did something similar ? Has anyone some good advice ?

Thanks in advance.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация