简体   繁体   English

提交按钮不起作用。 当我点击创建帐户按钮时没有采取任何行动

[英]Submit button not working. No action is taken when i click on the create account button

This is the form on whic i'm working.这是我正在工作的表格。 i want it to send the data to 1.php but when i click on the create account button.我希望它将数据发送到 1.php 但当我单击创建帐户按钮时。 please tell what is wrong with this code.请告诉我这段代码有什么问题。

<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>

Correct it in your button在您的按钮中更正它

type="submit"

You missed name Attribute in your fields without it nothing is submitted你在你的字段中错过了name属性,没有它什么都不会提交

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

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

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