php header() problem
<p>here is my code</p>

<pre><code>if($register){
header("Location: http://mydomain.com/userarea");
exit();
}
</code></pre>

<p>that if user is registered successfully it is redirected to userarea but after registering it stay on signup page but if i refresh the page it is redirecting me to userarea but i want to redirect the user on signup automatically.....how can i solve this problem</p>
