Question

I have magento website in domain and also in sub domain.

The domain website form work correctly i.e. $this->getRequest()->isPost() return true after form submission.

But the subdomain website form after submission $this->getRequest()->isPost() return false.

I also add the code : getFormKey(); ?>" />

after form tag then also it is not working.$this->getRequest()->isPost() return false.

Same code works in my local xampp server.

Please help me to solve this issue.

Was it helpful?

Solution

It should be

$this->getRequest()->isPost()

and not

$this->getrequest()->ispost()

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top