HTML in PHP Contact us Form : <p>I've attempted at a contact us form in PHP, now when it's submitted and user data it not filled in the form should refer the user back to fill it out again. so the code i currently have is:</p>

<pre><code> &lt;?php
  $all = 'All fields are required, please fill &lt;a href="\"&gt;the form&lt;/a&gt; again.'
$action=$_REQUEST['action'];
if ($action=="")    /* display the contact form */
    {
    ?&gt;
    &lt;form  action="" method="POST" enctype="multipart/form-data"&gt;
    &lt;input type="hidden" name="action" value="submit"&gt;
    Your name:&lt;br&gt;
    &lt;input name="name" type="text" value="" size="30"/&gt;&lt;br&gt;
    Your email:&lt;br&gt;
    &lt;input name="email" type="text" value="" size="30"/&gt;&lt;br&gt;
    Your message:&lt;br&gt;
    &lt;textarea name="message" rows="7" cols="30"&gt;&lt;/textarea&gt;&lt;br&gt;
    &lt;input type="submit" value="Send email"/&gt;
    &lt;/form&gt;
    &lt;?php
    } 
else                /* send the submitted data */
    {
    $name=$_REQUEST['name'];
    $email=$_REQUEST['email'];
    $message=$_REQUEST['message'];
    if (($name=="")||($email=="")||($message==""))
        {
        echo $all;
        }
    else{       
        $from="From: $name&lt;$email&gt;\r\nReturn-path: $email";
        $subject="Message sent using your contact form";
        // mail("email@email.com", $subject, $message, $from);
        echo "Email sent!";
        }
    }  
?&gt;
</code></pre>

<p>Now for some reason where i'm using <code>
All fields are required, please fill &lt;a href="\"&gt;the form&lt;/a&gt; again.</code> it does not hide its self 
it shows up which i find very strange?</p>

<p><a href="http://ragko.co.uk/Webs/Web2/" rel="nofollow noreferrer">Here is the live link to further explain</a></p>
