get the page a user viewed before current
<p>instead of</p>

<pre><code>login.php?ref=http://mysite.com/lastpage
</code></pre>

<p>could I get the before page somehow else? tried HTTP_REFERER but cant get it to work</p>

<pre><code>Notice: Undefined index: HTTP_REFERER in C:\test\login.php on line 18
</code></pre>

<p>// Newbie</p>
