Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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