Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PLEASE HELP, rich text in form

1 view
Skip to first unread message

hasan

unread,
Feb 12, 2002, 4:48:18 PM2/12/02
to
I've created a form for the company I work for using a combination of
PHP/HTML.

The form works great, but I'm not satisfied with the output.

Basically once submit is press, the form sends an email to our
exchange server and the appropriate users/groups are sent an email
with the output.

My problem is that I'm only able to use "plain text" in the output. I
would like to make the topics bold or underline them. Any attempt to
do this using html tags gives me a parse error.

Below is the code from the mail body. Can some1 please tell me how I
can make some fields bold if I want to . For example say I want to
make the "This form was submitted using the Systems Support Form "
bold and centered.


$mail_body="User Name: ".$usr_desc." Cost Center:
".$cc.chr(13)."Problem Summary: ".$prob_desc." Time
Spent: ".$min_desc." Minutes".chr(13);

$mail_body=$mail_body."---------------------------------------------------------------------------------------".chr(13);
$mail_body=$mail_body."Problem Details:".chr(13).$prob_detl.chr(13);
$mail_body=$mail_body."---------------------------------------------------------------------------------------".chr(13);
$mail_body=$mail_body."Trouble Shooting: ".chr(13).$ts_desc.chr(13);
$mail_body=$mail_body."---------------------------------------------------------------------------------------".chr(13);
$mail_body=$mail_body."Solution:".chr(13).$sol_desc.chr(13);
$mail_body=$mail_body."---------------------------------------------------------------------------------------".chr(13);
$mail_body=$mail_body."Comments:".chr(13).$comm_desc.chr(13).chr(13);
$mail_body=$mail_body."---------------------------------------------------------------------------------------".chr(13);
$mail_body=$mail_body."--- This form was submitted using the Systems
Support Form ---";


Thanks for any help or suggestions.

hasan

Justin Koivisto

unread,
Feb 12, 2002, 4:57:07 PM2/12/02
to
hasan wrote:

> The form works great, but I'm not satisfied with the output.
>

> My problem is that I'm only able to use "plain text" in the output. I
> would like to make the topics bold or underline them. Any attempt to
> do this using html tags gives me a parse error.

You'll want to send an HTML MIME email message. Go to
http://phpclasses.upperdesign.com and do a search for MIME email
classes. I know there is _at_least_ one of them since I've used it before.

--
<?$a=array(306%200,100+17,130-15,232/2,1.05*100,11*10,10*10+7,8*8,
119%100+100,100-3,100+2,21*5,11.5*10,10*4+8*8,50+51,(.14+1)*100,
709%600,1100/10,23*2,33*3,888/8,109);$b='';while(list(,$c)=@each($a))
$b.=sprintf("%c\n",$c);echo str_replace("<br />\n",'',nl2br($b));?>

0 new messages