提交按钮不起作用。单击“创建帐户”按钮时不执行任何操作

时间:2016-03-22 08:18:26

标签: php html twitter-bootstrap

这是关于我正在工作的表格。我希望它将数据发送到1.php,但是当我点击创建帐户按钮时。请告诉我这段代码有什么问题。

<div class="logmod__form">
  <form accept-charset="utf-8" action="1.php" class="simform" method="post">
    <div class="sminputs">
      <div class="input full">
        <label class="string optional" for="user-name">Email*</label>
        <input class="string optional" maxlength="255" id="user-email" placeholder="Email" type="email" size="50" />
      </div>
    </div>
    <div class="sminputs">
      <div class="input string optional">
        <label class="string optional" for="user-pw">Password *</label>
        <input class="string optional" maxlength="255" id="user-pw" placeholder="Password" type="text" size="50" />
      </div>
      <div class="input string optional">
        <label class="string optional" for="user-pw-repeat">Repeat password *</label>
        <input class="string optional" maxlength="255" id="user-pw-repeat" placeholder="Repeat password" type="text" size="50" />
      </div>
    </div>
    <div class="simform__actions">
      <input class="sumbit" name="commit" type="sumbit" value="Create Account" />
      <span class="simform__actions-sidetext">By creating an account you agree to our <a class="special" href="#" target="_blank" role="link">Terms & Privacy</a></span> </div>
  </form>
</div>

1 个答案:

答案 0 :(得分:2)

在按钮中更正

type="submit"

您的字段中遗漏了name属性,但未提交任何内容

<input class="string optional" maxlength="255" id="user-pw-repeat" placeholder="Repeat password" type="text" size="50"  name="user-pw-repeat"/>