I have the following code to determine the URL used to load a page, it works in all browsers except IE.
Is this a known issue?
if(isset($_SERVER['HTTP_REFERER'])) 
    {
    //correct domain:
    $domain=parse_url($_SERVER['HTTP_REFERER']);
    if( strpos($ar['host'], 'mydomain.com') === false )
        {
        } 
        else 
        {
        echo $domain['host'];
        }
    }
Is there a different way to get the URL that the user is using? Essentially I need to know what URL the user has entered to determine what to display on the screen.
 
     
     
    