Hi there!
I have this code:

$message="
Hi there \n\n\n
Name: $name \n
";

How i can put 'Hi there' in bold ? $name its the variable that php load in flash cs3 and send it to mail.

thanks ;)

Comments

zeta ζ’s picture

It’s just a string – it doesn’t have intrinsically bold characters.

It depends on the output context — It is a safe bet that this will be output to html, so put some ht mark-up around the text.

$message="
<strong>Hi there</strong> \n\n\n
Name: $name \n
"; 

If, on the other hand, this is to go in an e-mail — make sure it’s in html format.

You can also use <br /> tags.
___________________
It’s in the detaιls…

demonstration portfolio