cancel
Showing results for 
Search instead for 
Did you mean: 

Mage::app()->getRequest()->getParam('email') in template .phtml not work

Mage::app()->getRequest()->getParam('email') in template .phtml not work

Mage::app()->getRequest()->getParam('email') in template .phtml not work

1 REPLY

Re: Mage::app()->getRequest()->getParam('email') in template .phtml not work

Can you provide more information please?

 

Such as:

 

  • What you're trying to acheive
  • When is the template loaded onto the page?
  • The URL you are using, or the type of request you are sending (is the email param a POST or GET?)

 

Additionally, I'd recommend creating a custom block to handle this logic. Your block could have a method: getEmail() which would simply return: $this->getRequest()->getParam('email'). If you're unsure on how to do this, this post should help: http://www.gpmd.co.uk/blog/beginners-guide-to-setting-up-a-basic-custom-block-module-in-magento/