2011-11-01 55 views
1

我使用以下字段的表單。由於某些奇怪的原因,電話和短信不在發送請求中發送。無法發佈的表單字段

<form id="contact-form" method="post" action="contact.php" name="contactform"> 
    <fieldset> 
     <div class="float-left"> 
      <label for="Name">Full Name</label> 
      <input id="name" type="text" name="name" /> 
      <label for="Email">Email Address</label> 
      <input id="email" type="text" name="email" /> 
      <label for="Phone">Phone Number</label> 
      <input name="phone" type="text" id="phone" /> 
     </div> 
     <div class="float-right"> 
      <label for=comments accesskey=C>Message</label> 
      <textarea id="comments" rows="10" cols="10" 
       name="comments"></textarea> 
      <button id="submit" type="submit">Send Enquiry</button> 
     </div> 
     <div class="clear"></div> 
    </fieldset> 
</form> 

帖子:

Parametersapplication/x-www-form-urlencoded 
comments  
email [email protected] 
name Joe Bloggs 
phone 
Source 
name=Joe Bloggs&email=ukkgfpower%40hotmail.com&phone=&comments= 
+0

'phone'和'comments'在那裏JS文件設置正確。只有空:'&phone =&comments ='。填充字段併發布表單時會發生什麼? –

+0

我看到手機發送得很好,沒有任何價值,但它正在發送。你沒有任何帶有消息名稱的表單元素,你的意思是?如果是這樣,我也看到了。 –

+0

對不起,我的意思是評論和電話沒有被髮送,但他們填寫在表格中。其他的東西可能會影響他們 –

回答

1

問題是字段名沒有在處理AJAX提交

相關問題