<?php
print "<pre>";
print "Thank you very much for your enquiry\n";
print "{$POST['title']} {$POST['firstname']} {$POST['surname']}\n\n";
print "Your address is:\n";
print "{$POST['address']}<br>\n";
print "</pre>";
//start bulding up the mail message
$msg ="Title: {$POST['title']}\n";
$msg .="First Name: {$POST['firstname']}\n";
$msg .="Surname: {$POST['surname']}\n";
$msg .="Home Address: {$POST['address']}\n";
$msg .="Telephone: {$POST['phone']}\n";
$msg .="email Address: {$POST['email']}\n";
$msg .="Additional/demo Enquiry: $POST{['demo']}\n";
//construct a note of which boxes have been selected
if (!empty($POST ['product1'])){
foreach($POST['product1'] as $valueproduct1) {
$msg .="brochure: $valueproduct1, ";
}
}
if (!empty($POST ['product2'])){
foreach($POST['product2'] as $valueproduct2) {
$msg .="brochure: $valueproduct2, ";
}
}
if (!empty($POST ['product3'])){
foreach($POST['product3'] as $valueproduct3) {
$msg .="brochure: $valueproduct3, ";
}
}
if (!empty($POST ['product4'])){
foreach($POST['product4'] as $valueproduct4) {
$msg .="brochure: $valueproduct4, ";
}
}
if (!empty($POST ['product5'])){
foreach($POST['product5'] as $valueproduct5) {
$msg .="brochure: $valueproduct5, ";
}
}
//set up the mail
$to = "foo@foobar.com\r\n";
$subject = " Form Submission Results\r\n";
$mailheaders = "From: MyWebsite:<foo@foobar.com>\r\n";
$mailheaders .= "Reply-To: {$POST[email]}";
//send the mail
mail($to, $subject, $msg, $mailheaders) or print "I'm sorry the form is still under construction please ring us until completion";
?>
Is this what you mean? I regret it has had no effect (no harm either).
Thanks