required field error not appearing
<p>When using this code to try an show an error, the page redirects to myaccount, but should only redirect there if the required field has been completed, for example;</p>

<p>error message appears if birth_country is not chosen</p>

<pre><code>if(empty($birth_country))
    {
        $err[] = "ERROR - Enter Birth Country";
           header("Location: personal.php?msg=$err[0]");
    }
</code></pre>

<p>but if it is chosen, should redirect to...</p>

<pre><code>header("location: myaccount.php?id=" . $_SESSION['user_id']. "");
exit();
</code></pre>

<p>However it always goes to myaccount no matter what
Thanks</p>
