remember input fields
<p>I have a code like this in my register form </p>

<pre><code>$_POST['email'] = trim($_POST['email']);
        if($_POST['email']){
             if(!eregi("^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*@[a-zA-Z0-9]+[a-zA-Z0-9_.-])*\.[a-z]{2,4}$", $_POST['email'])){
              $error['emailerror'] = "  &lt;span class='Register_Tip'&gt;Wrong Email&lt;/span&gt;";
</code></pre>

<p>it tell the user that the email is wrong </p>

<p>but after he see the error the form is reset </p>

<p>i need the form to remember the value that the user wrote </p>
