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

Grabbing variables from the URL
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

Does anyone know how to grab variables from the URL in Magento?  I am editing one of the core files, and I want to find the value of “q” in http://www.mydomain.com/catalogsearch/result/index/mode/list/?q=resident

I tried:

$q $_GET['q'];

but it didnt work.

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