hi! Please help me in mailing the form data using tables. below is my code

$message = " $todayis [EST] \n
Subject: $attn \n
Message: $notes \n
From: $visitor \n
Designation : $designation \n
Employee ID: $empid \n
Department : $department \n
Head Quarters: $hd \n
Tour Location: $tl \n
Primary monthly target : $pmt \n
Secondary monthly target : $smt \n
Primary achivement as of yesterday : $pay \n
Secondary achivement as of yesterday : $say \n
Collection of kits for today : $ckt \n
Fitment details : $fitment \n
";

I want the above matter inside table.


thanks in advance

Santosh

Recommended Answers

All 6 Replies

In $message you can create table , and add fields that want to display in that...

In $message you can create table , and add fields that want to display in that...

Dear Sir, Can u please code it for me since i am very new to php. thank you

Santosh

$message ="<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>Designation :</td><td>$designation</td></tr><tr><td>Employee ID:</td><td>$empid</td></tr></table>";

Try adding all ur fields like this...

Thank you very much Mr. Logonchristy.

Santosh

$message ="<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>Designation :</td><td>$designation</td></tr><tr><td>Employee ID:</td><td>$empid</td></tr></table>";

Try adding all ur fields like this...

hi! tried with the code but its giving error - Parse error: syntax error, unexpected T_LNUMBER in /home/.../sendemail.php on line 128

It seems you miss close bracket somewhere...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.