2

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.

1 Answer 1

2

It should be

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

and not

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

40
  • Sorry..its $this->getRequest()->isPost() in my code also.Its just change in my question now i just edit with proper name in question. Commented Nov 17, 2015 at 8:39
  • $this->getRequest()->isPost() this method returns blank.Please help me.. Commented Nov 17, 2015 at 8:40
  • Are you getting anything in $this->getRequest()->getPost() ? Commented Nov 17, 2015 at 8:47
  • $this->getRequest()->isPost() return true if $_SERVER['REQUEST_METHOD'] == 'POST' Commented Nov 17, 2015 at 8:49
  • Sir its working fine in xampp server localhost but after uploaded to server in subdomain magento website its not work.I didn't get any value in $this->getRequest()->isPost() method neither true nor false. i'm so stuck with this issue. Commented Nov 19, 2015 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.