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 firstname.lastname@example.org.
[resolved] $_SERVER[’HTTP_REFERER’] not working, need equivalent for phtml page
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?