Magento Forum

   
[resolved] $_SERVER[’HTTP_REFERER’] not working, need equivalent for phtml page
 
darryla
Member
 
Total Posts:  52
Joined:  2008-07-08
 

Hi,

I am creating a phtml home page and I am trying to display certain products on the home page based on the Google search which brought them there but in order to know the search term I need the HTTP referrer but using $_SERVER[’HTTP_REFERER’] throws an error.

Is there a function I can call in a .phtml file in Magento that will give me this value?

Thanks in advance smile

Resolved: forgot—isset()

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top