Forum Moderators: coopster
i am at my early stage in php. but going well with mysql.
i tried to change the font type and size in my project.
[phpcode]
$body=$body . "<font face=Tahoma size=14>Wellcome to my website</font>\n";
[/vbcode]
But the output prints every thing as follows >
font face=Tahoma size=14>wel come to my website</font>
Pls help me...
echo $body;
echo "<font face='Tahoma' size='14'>Welcome to my website</font>\n";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: somkewhere <info@somkewhere.com>' . "\r\n";
then the markup will be recognised
I am sorry that i got a solution in an outside forum yesterday. actually i thought to inform it in this thread by today .
It was really a problem with the header.
it was written like
"Content-type: text/htmlcharset=iso-8859-1"
it should be
"Content-type: text/html; charset=iso-8859-1"
I think as you all told i shoud have post atleast part of the code.
Thank you all.
bye