博客列表 >用户注册表单

用户注册表单

A01建站_后乐轩网络
A01建站_后乐轩网络原创
2022年07月09日 23:35:17352浏览

<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表单</title>
</head>
<body>
<!-- onsubmit="return false" -->
<form action="check.php" method="post" >
<div>
<label for="cap">用户名:</label>
<input type="text" placeholder="用户名不能为空" name="ied" id="cap">
</div>
<div>
<label for="secret">密码:</label>
<input type="text" placeholder="密码不能为空" name="ied" id="secret">
</div>
<div>
<label for="male">性别:</label>
<input type="radio" name="sex" value="male" id="male" ><label for="male">男</label>
<input type="radio" name="sex" female="female" id="female" checked><label for="female">女</label>
</div>
<div>
<label for="three">年级:</label>
<input type="checkbox" name="nian[]" value="one" id="one" checked><label for="one">一年级</label>
<input type="checkbox" name="nian[]" value="two" id="two"><label for="two">二年级</label>
<input type="checkbox" name="nian[]" value="three" id="three" ><label for="three">三年级</label>
<input type="checkbox" name="nian[]" value="four" id="four"><label for="four">四年级</label>
<input type="checkbox" name="nian[]" value="five" id="five"><label for="five">五年级</label>
</div>
<div>
<label for="">大学年级:</label>
<select name="daxue" id="" >
<option value="0" selected disabled>—-默认选项—-</option>
<option value="1" >二年级</option>
<option value="2">三年级</option>
</select>
</div>
<button>提交</button>
</form>
</body>
</html>

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议