Please advice why the form is not redirecting to the url?
<p>Please help with this php contact form. It works, however, I want to redirect the visitor to a different .html page instead of showing a thankyou message, but i do not want to lose the contact form info.  Thanks ! </p>

<p>I am using very simple contact form: </p>

<pre><code>&lt;form method="POST" action="sendmail.php" class="form"&gt;
        &lt;p class="yourName"&gt; Submit Name:&lt;/p&gt;
        &lt;input name="text" class="name" placeholder="Name" name="name"&gt;
        &lt;p class="yourEmail"&gt;Submit Email:&lt;/p&gt;
        &lt;input type="text" class="email" placeholder="Email" name="email"&gt;
        &lt;p class="yourInquiry"&gt;Submit Inquiry:&lt;/p&gt;
        &lt;input type="submit" value="Submit" class="Button"&gt;    
    &lt;/form&gt;






&lt;?php
    $to = "xyz@hotmail.com";
    $subject = "Inquiry from ". $_POST['name'];
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
    $html`enter code here` = "";
    foreach ($_POST as $name =&gt; $value) {
        $html .= "&lt;strong&gt;$name&lt;/strong&gt;&lt;br&gt;";
        $html .= "&lt;p&gt;$value&lt;/p&gt;&lt;br&gt;";
    }
    if (mail($to, $subject, $html,$headers)) {
        /* Success Message */   
    } else {
        /* Error message */
    }


    header('Location:about.html');

    } else {
    echo "You didnt enter anything";
    ?&gt;
</code></pre>
