0

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

2
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by logonchristy
0

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

0

$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...

0

$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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.