Need some help to make changes in PHP Contact Us form
<p>I am making a contact us form using this PHP code</p>

<pre><code>&lt;?php

$action = $_SERVER['PHP_SELF'];

    $fname = $_POST['fname'];
    $phone = $_POST['phone'];
    $e_mail = $_POST['e_mail'];
    $service = $_POST['service'];
    $maker = $_POST['maker'];
    $model = $_POST['model'];
    $year = $_POST['year'];
    $message = $_POST['message'];

$to = 'reckless.sam@gmail.com';
$subject = 'Customer Service Request';
$body = 'Customer name: ' . $fname .  "\n" .  
'Contact-No: ' . $phone .  "\n" . 
'E-mail: ' . $e_mail .  "\n" .
'Service-Type: ' . $service .  "\n" .  
'Car-Make: '. $maker .  "\n" . 
'Car-Model: ' . $model .  "\n" . 
'Model-Year: ' . $year .  "\n" . 
'Service Required: ' . $message .  "\n" ;
$headers = 'From: Micheal Key &lt;reply@locallockman.com&gt;';
$thankyou = "thankyou.html"; // thank you page
if(isset($_POST['fname']) &amp;&amp; isset($_POST['phone']) &amp;&amp; isset($_POST['e_mail']) &amp;&amp; isset($_POST['service']) &amp;&amp; isset($_POST['message']))

$maker = $model = $year = 'Not Set'; // Or just use a empty string: '';
if(isset($_POST['maker'])){
    $maker = $_POST['maker'];
}
if(isset($_POST['model'])){
    $model = $_POST['model'];
}
if(isset($_POST['year'])){
    $year = $_POST['year'];
}{
    $fname = $_POST['fname'];
    $phone = $_POST['phone'];
    $e_mail = $_POST['e_mail'];
    $type = $_POST['service'];
    $maker = $_POST['maker'];

    $model = $_POST['model'];

    $year = $_POST['year'];
    $message = $_POST['message'];

    if(empty($phone)){
        echo 'Please fill your Contact Number.';
    }
    else{
        if(mail($to,$subject,$body,$headers)){
        header('Location: thankyou.html');

        }
        else{
            echo 'There was an error sending email/s.';
        }
    }

}


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

<p>I have put this code in another file and call this file using 

<p>Now when i run the form, and the fields are empty, then the error echo is open in another page called 'form.php'.</p>

<p>How is it possible to display the error echo on the same page?</p>
