大家好我有这样的表格,如果用户填写我的博客页面上的联系表格,它将被发送到我的电子邮件,但当他们点击发送按钮时没有任何反应。
<form action='mailto:aaaa@yahoo.com' method='POST' name='contact-form'>
<div>
Name:
</div>
<input class='contact-form-name' id='ContactForm1_contact-form-name' name='name' size='30' type='text' value=''/>
<div>
Email:
</div>
<input class='contact-form-email' id='ContactForm1_contact-form-email' name='email' size='30' type='text' value=''/>
<div>
Contact Number:
</div>
<input class='contact-form-number' id='ContactForm1_contact-form-number' name='number' size='30' type='text' value=''/>
<div>
Item Details:
</div>
<textarea class='contact-form-email-message' id='ContactForm1_contact-form-email-message' name='email-message' rows='5'/>
<p/>
<input class='submit' id='ContactForm1_contact-form-submit' type='button' value='Send'/>
<div style='text-align: center; max-width: 450px; width: 100%'>
<p class='contact-form-error-message' id='ContactForm1_contact-form-error-message'/>
<p class='contact-form-success-message' id='ContactForm1_contact-form-success- message'/>
</div>
</form>
答案 0 :(得分:2)
将按钮中的type='button'
更改为type='submit'