简体   繁体   English

提交按钮在php脚本中不起作用-完全没有按下

[英]Submit Button not Working in php script - By Pressing Nothing Happens

I do not know why the submit button doesn't work. 我不知道为什么提交按钮不起作用。 When I click on it, nothing happens. 当我单击它时,什么也没有发生。 What is What is Mistake don't know? 什么是错误不知道? Here is code: 这是代码:

<form action=members.php method=post>

<br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login Area</h3></td></tr>
<tr><td>Member's ID</td><td><input type=text name=id></td></tr>
<tr><td>Password</td><td><input type=password name=password></td></tr>
<tr><td>&nbsp;</td><td>
<a href="forgot.php" onclick="doexit=false;"><font face="Verdana,Arial,Helvetica" size="1" color="#000000"><b>Forgot Your Password?</b></font></a></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Log In"></td></tr>         
</table></form>

where is quotes ("). u missed quotes everywhere :P 引号(“)在哪里。您到处都缺少引号:P

<form action="members.php" method="post">

// Your code must be something like this. //您的代码必须是这样的。

<form action="members.php" method="post">
  <br><br>
  <center>
    <table>
      <tr>
        <td colspan="2" align="center">
          <h3>
            Members Login Area
          </h3>
        </td>
      </tr>
      <tr>
        <td>
          Member's ID
        </td>
        <td>
          <input type="text" name="id"></td>
      </tr>
      <tr>
        <td>
          Password
        </td>
        <td>
          <input type="password" name="password">
        </td>
      </tr>
      <tr>
        <td>
          &nbsp;
        </td>
        <td>
          <a href="forgot.php" onclick="doexit=false;">
            <font face="Verdana,Arial,Helvetica" size="1" color="#000000">
            <b>
              Forgot Your Password?
            </b>
            </font>
          </a>
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
          <input type="submit" value="Log In">
        </td>
      </tr>         
    </table>
  </center>
</form>
<input type=submit value="Log In">

should be 应该

<input type='submit' value="Log In">

and its like type="something" not type=something 和它像type="something"而不是type=something

the structure of input is 输入的结构是

<input type='keyword' > and keyword could be from this list (w3.org) <input type='keyword' >和关键字可能来自此列表 (w3.org)

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

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