# Mail form- sent message with backgrounds and layout

**URL:** <https://forum.kirupa.com/t/mail-form-sent-message-with-backgrounds-and-layout/187165>\
**Category:** Uncategorized\
**Created:** [April 27, 2006, 3:30am UTC](https://forum.kirupa.com/t/mail-form-sent-message-with-backgrounds-and-layout/187165 "2006-04-27T03:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooncry](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@mooncry](https://forum.kirupa.com/u/mooncry)\
**Post date:** [April 27, 2006, 3:30am UTC](https://forum.kirupa.com/t/mail-form-sent-message-with-backgrounds-and-layout/187165/1 "2006-04-27T03:30:05Z")

</div>

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](http://www.location-of-themessage.com)”;[/SIZE][/SIZE][/FONT]
