it the below, if there is a Guest_Name value then it will display in the page, or else not
same goes for Guest_Name2 uptill Guest_Name5
how can i put it similarly in the email message also
meaning if there is Guest_Name then put in the email if not then not to put
but they all will go together..
actually how do i do a similar if-then in the message box
<if Guest_Name<>""
{
echo "<font face=\"arial\" size=\"2\"><b>Guest Name:</b> $Guest_Name</font><br>";
}
<if Guest_Name2<>""
{
echo "<font face=\"arial\" size=\"2\"><b>Guest Name:</b> $Guest_Name2</font><br>";
}
PHP:--------------------------------------------------------------------------------
<?
$recipient = "info <info@abc.com>, $TA_email" ;
/ subject /
$subject = "Form";
$message ="";
$headers .= "From: info <info@abc.com>\n";
$headers .= "X-Sender: <webmaster@abc.com>\n";
//$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Mailer: abc.com.my\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <info@abc.com>\n"; // Return path for errors
/ to send html mail, uncomment the following line /
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
mail($recipient, $subject, $message, $headers);
}
?>