<!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>