header() simply does nothing
<p>Only thing I have changed recently is turn register_globals to off</p>

<p>Here is the end of login script:</p>

<pre><code>$from = $_POST['from']; //convert form element to var
//echo "got here, from is $from"; die; 

// test to prove $from is empty
if($from == '')
{ 
    $from = '/pages/reg2.html'; 
}
header("Location: $from"); // this should redirect page
</code></pre>
