hi guys, i was following the tutorial of Php form mailer under PHP Advanced, i tested my file on a server and it works fine, it gave me the message [FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2][SIZE=2]“Thank you for submitting our form. We will get back to you as soon as possible.” what if i wanted the message to have a background and have some simple layout, not just a text on a plain white background? is it possible? what should i add on the phph codes? thanks in advance, really hoping to hear from you guys soon:)
the current php code right now is :
<?PHP
$to = "sherwin@verticaldesignevolution.com";
$subject = “Results from your Request Info form”;
$headers = “From: Form Mailer”;
$forward = 0;
$location = “”;
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = "Below is the result of your feedback form. It was submitted on $date at $time.
";
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "
“;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : ". $value . "
";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
echo “Thank you for submitting our form. We will get back to you as soon as possible.”;
}
?>
or can i just remove this line:
" [/SIZE][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2][SIZE=2] else {
echo “Thank you for submitting our form. We will get back to you as soon as possible.”;
}
and put [/SIZE][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2][SIZE=2]
$forward = 1;
$location = “www.location-of-themessage.com”;[/SIZE][/SIZE][/FONT]