getRequest()->getPost(); if ( $post ) { $translate = Mage::getSingleton('core/translate'); /* @var $translate Mage_Core_Model_Translate */ $translate->setTranslateInline(false); try { $postObject = new Varien_Object(); $postObject->setData($post); if (Zend_Validate::is(trim($post['last_name']) , 'NotEmpty')) { throw new Exception(); } $request = Mage::app()->getRequest(); $request->initForward() ->setControllerName('index') ->setModuleName('contacts') ->setActionName('post') ->setDispatched(false); return false; } catch (Exception $e) { $translate->setTranslateInline(true); Mage::getSingleton('customer/session')->addError(Mage::helper('contacts')->__('Unable to submit your request. Please, fill country fields')); $this->_redirect('contacts/index/'); return; } } else { $this->_redirect('contacts/index/'); } } }