bootstrap 中的提交按钮不提交值

问题描述 投票:0回答:2
<form name="form1" class="newsletter relative color_default button_in_input" action="process.php" method="post">

您好,我正在尝试提交此表格,但它根本没有做任何事情。一直呆在那里。

forms form-submit submit-button
2个回答
0
投票

您需要关闭表单并确保提交按钮在

<form></form>
标签内。


0
投票
<form name="form1" class="newsletter relative color_default button_in_input" action="process.php" method="post">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form>

设置要提交的提交按钮类型,但如果您显示代码,我们可以检查错误。

© www.soinside.com 2019 - 2024. All rights reserved.