pyro - you're right! 50 fields would be very prolix!
also, just a query on using \n instead of <br>
i am using the following:
<?php
$to = "rupertbj@tiscali.co.uk";
$subject = "email submission from rancone.co.uk";
$content = array ( $title, $name, $surname, "<br>", $address, "<br>", $phone, "<br>", $email, "<br>", $message );
$val = implode(" ", $content);
$sender_name = "rancone.co.uk - booking submission";
$headers .= "From: \"".addslashes($sender_name)."\" <".$email.">\r\n";
$headers .= "Reply-To: ".$email."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-Mailer: PHP / ".phpversion()."\r\n";
mail( $to, $subject, $val, $headers ) or print "Error handling message. message not sent.";
?>
I tried using:
$val = implode("\n", $content);
but it didn't work. any ideas why?
Also, should i set <br> in an array instead of \n anyway?
Thanks for your help!