简体   繁体   中英

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

<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

the structure of input is

<input type='keyword' > and keyword could be from this list (w3.org)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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