简体   繁体   English

HTML表单无法正确提交

[英]HTML Form Will Not Submit Correctly

This form will not submit for some weird reason. 出于某些奇怪的原因,该表格不会提交。 Can anyone spot the issue? 谁能发现这个问题?

<form id="sendEmailForm-1" method="post" action="">
  <input type="text" name="client-name" class="form-control" autofocus="" placeholder="What is your name?" required="">

  <div class="space-15"></div>
  <input type="text" name="client-email" class="form-control" autofocus="" placeholder="What is your email?" required="">

  <div class="space-15"></div>
  <input type="text" name="email-subject" class="form-control" autofocus="" placeholder="Give it a good subject" required="">

  <div class="space-15"></div>
  <textarea type="text" name="email-body" class="form-control textarea-lg" autofocus="" placeholder="What is your question?" required=""></textarea>

  <div class="space-15"></div>
  <button type="submit" class="btn btn-lg btn-dark btn-block" id="send-ask-message">Send!</button>
</form>

Please Check your Action is empty at the first line of code 请在第一行代码中检查您的操作是否为空

<form id="sendEmailForm-1" method="post" action="">

you need to specify where you want to submit your form 您需要指定要提交表单的位置

if it don't resolves issue then please post more code relevant to this form 如果无法解决问题,请发布与此表单相关的更多代码

thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM