I have created a custom contact form with indexcontroller. Emails are sent correctly with full post data but I cannot get the post values in the controller.

public function postAction()
    $post = $this->getRequest()->getPost();
    $ciao = $post['email'];
    if ( $post ) {
        $translate = Mage::getSingleton('core/translate');
        /* @var $translate Mage_Core_Model_Translate */
        try {
            $postObject = new Varien_Object();

            $error = false;

Any $post['parameter'] looks empty.

What is wrong with it?

  • Can you tell in details : Emails are sent correctly with full post << which code use to data get for that. And what is form parameter when submit form ? Jul 3 '21 at 5:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.