PHP contact form error
<p>Have the following for my contact form im building only its not sending...</p>

<p>Ive tried to print the results to the browser which it does but for some reason it wont send, can anybody see syntax errors? </p>

<pre><code>&lt;?php 

$fname = $_POST['fname'];
$lname = $_POST['lname'];
$email = $_POST['email'];
$addr = $_POST['addr'];
$postcode = $_POST['postcode'];
$landline = $_POST['landline'];
$mob = $_POST['mob'];
$carw = $_POST['carw'];
$depo = $_POST['depo'];
$marsta = $_POST['marsta'];
$ressta = $_POST['ressta'];
$to = "liam@.co.uk";

    //begin of HTML message
    $message = "
  From : $name $lname,
  Email: $email,
  Address: $addr $postcode,
  Landline: $landline,
  Mobile: $mob,
  Car Wanted: $carw,
  Deposit Available: $depo,
  Marital Status: $marsta,
  Residential Status: $ressta";
   //end of message

    // To send the HTML mail we need to set the Content-type header.
    $headers = "MIME-Version: 1.0rn";
    $headers .= "Content-type: text/html; charset=iso-8859-1rn";
    $headers  .= "From: Website Enquiry";




if (isset($name))
{
       // now lets send the email.
   mail($to, $subject, $message, $headers);

header('Location: ' . $_SERVER['HTTP_REFERER'] . '?e=Thankyou, we will be in touch shortly.');

} else {header('Location: ' . $_SERVER['HTTP_REFERER'] . '?e=There was an error sending your message, Please try again.');}

?&gt; 
</code></pre>
