2016-03-21 66 views
-1

我在建立新的聯絡方式:自定義聯繫表單:無法提交您的請求。請稍後再試

app/design/frontend/base/default/template/contacts 

命名form2.phtml

我收到錯誤:無法提交請求。請稍後再試。

這裏是我的代碼:

  <div id="messages_product_view"><?php echo $this->getMessagesBlock()->toHtml() ?></div> 
      <h2>Questions? Comments?<br> 
      Contact us here and we’ll get back to you shortly.</h2> 
      <form action="<?php echo $this->getFormAction(); ?>" id="contactForm2" class="footer-form" method="post"> 
       <div class="fieldset"> 

        <ul class="form-list"> 
         <div class="form-row"> 
          <li> 
           <div class="input-box"> 
            <input placeholder="First Name *" name="first name" id="name" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('First Name')) ?>" value="<?php echo $this->escapeHtml($this->helper('contacts')->getUserName()) ?>" class="input-text required-entry" type="text" /> 
           </div> 
          </li> 
             <li> 
           <div class="input-box"> 
            <input placeholder="Last Name *" name="last name" id="name" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('Last Name')) ?>" value="<?php echo $this->escapeHtml($this->helper('contacts')->getUserName()) ?>" class="input-text required-entry" type="text" /> 
           </div> 
          </li> 
         </div> 
         <div class="form-row"> 
          <li> 
           <div class="input-box"> 
            <input placeholder="Email *" name="email" id="email" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('Email')) ?>" value="<?php echo $this->escapeHtml($this->helper('contacts')->getUserEmail()) ?>" class="input-text required-entry validate-email" type="text" /> 
           </div> 
          </li> 
          <li> 
           <div class="input-box"> 
            <input placeholder="Telephone" name="telephone" id="telephone" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('Telephone')) ?>" value="" class="input-text" type="text" /> 
           </div> 
          </li> 
         </div> 
         <li class="wide"> 
          <div class="input-box"> 
           <textarea placeholder="Message *" name="comment" id="comment" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('Comment')) ?>" class="required-entry input-text" cols="5" rows="3"></textarea> 
          </div> 
         </li> 
        </ul> 
       </div> 
       <div class="buttons-set"> 
        <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" /> 
        <button type="submit" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('contacts')->__('Submit')) ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('SEND') ?></span></span></button> 
       </div> 
      </form> 
      <script type="text/javascript"> 
      //<![CDATA[ 
       var contactForm = new VarienForm('contactForm', true); 
      //]]> 
      </script> 

任何想法會導致什麼呢?當我切換回它時,默認窗體工作正常。我錯過了某個地方的某個步驟嗎?

由於

回答

0

由於已經將 「hideit」 輸入添加,註釋

if (Zend_Validate::is(trim($post[’hideit’]), ‘NotEmpty’)) { 
    $error = true; 
} 

應用程序/代碼/核心/法師/聯繫人/控制器內部/ indexController.php

相關問題