HTML 之 form 表单提交数据

form 表单内必须有 <input type="submit" value="submit"> 才能提交数据

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <form action="users" method="post">
      <label>UserName<input name="username" type='text'></label>
      <br>
      <label>PassWord<input name="password" type='password'></label>
      <br>
      <input type="submit" value="submit">
    </form>
  </body>
</html>

HTML 之 form 表单提交数据

HTML 之 form 表单提交数据

相关推荐