gin/form-param/page/login.html

35 lines
1.1 KiB
HTML
Raw Normal View History

2024-09-18 00:04:45 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<form action="http://localhost:8000/form" method="post" enctype="application/x-www-form-urlencoded">
用户名:<input type="text" name="username">
<br>
&nbsp&nbsp码: <input type="password" name="password">
&nbsp&nbsp趣:
<input type="checkbox" value="run" name="hobby">跑步
<input type="checkbox" value="game" name="hobby">游戏
<input type="checkbox" value="money" name="hobby">金钱
<br>
<input type="submit" value="登录">
</form>
<form action="http://localhost:8000/upload" method="post" enctype="multipart/form-data">
头像: <input type="file" name="file">
<br>
<input type="submit" value="提交">
</form>
<form action="http://localhost:8000/uploads" method="post" enctype="multipart/form-data">
多个文件: <input type="file" name="files" multiple>
<br>
<input type="submit" value="提交">
</form>
</body>
</html>