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

Accessing POST and GET vars
 
JBxHosting
Jr. Member
 
Total Posts:  17
Joined:  2008-11-10
 

Hi,

I know I can access POSTed vars in a controller using $this->getRequest->getParam(’varname’);, but how can I get access to this variable in my .phtml file?

Thanks in advance,

Jon

 
Magento Community Magento Community
Magento Community
Magento Community
 
demonkoryu
Guru
 
Avatar
Total Posts:  328
Joined:  2008-11-26
Dortmund, Germany
 

Mage::app()->getRequest()

 
Magento Community Magento Community
Magento Community
Magento Community
 
JBxHosting
Jr. Member
 
Total Posts:  17
Joined:  2008-11-10
 

Thanks Nightfly! Appreciate the quick response!

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