| 123456789101112131415161718192021222324252627 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- </head>
- <body>
- <!--login是一个servlet-->
- <h2>GET提交</h2>
- <form action="login" method="get">
- 用户名:
- <input type="text" name="username"><br/>
- 密码:
- <input type="password" name="pwd"><br/>
- <input type="submit" value="登录">
- </form>
- <hr>
- <h2>POST提交</h2>
- <form action="login" method="post">
- 用户名:
- <input type="text" name="username"><br/>
- 密码:
- <input type="password" name="password"><br/>
- <input type="submit" value="登录">
- </form>
- </body>
- </html>
|