Show link based on Referrer URL
<p>I am  having a little trouble showing/hiding a link based on the referrer page. I am only worried about the page not any extra querys at the end.</p>

<p>BELOW IS THE UPDATED SCRIPT</p>

<pre><code>&lt;? 

$last_page = GetHostByName($_SERVER['HTTP_REFERER']);

  if(strpos($last_page,"fall2011"))
    {
        echo '&lt;li&gt;&lt;a href="'. $last_page  .'" class="navigation-link"&gt;Fall 2011&lt;/a&gt;&lt;/li&gt;';
    }else{
        //THIS IS HERE FOR TESTING
        echo $last_page;
}


?&gt;
</code></pre>

<p>For some reason I am still not getting the referer data. </p>
