Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Contact form problem
 
capola
Member
 
Total Posts:  33
Joined:  2011-04-12
 

Hi experts!

I try to get my contact form to a simple CMS page. The problem is that

Unable to submit your request. Please, try again later

message appears. How can I test whether my form works correctly if my site is in localhost?

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

so this is in my form.phtml

<?php Mage::app()->getLayout()->getMessagesBlock()->setMessages(Mage::getSingleton('customer/session')->getMessages(true)); ?> 
<form action="<?php echo Mage::getUrl(); ?>contacts/index/post/" id="contactForm" method="post">

I also have changed IndexController:php to redirect me to the home page:

$this->_redirect('');

Many thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top