这题判定太死板了,说好name取值一样就行的呢?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>单选框、复选框</title>
</head>
<body>
<form action="save.php" method="post" >
<label>性别:</label>
<label>男</label>
<input type="radio" value="1" name="sex" />
<label>女</label>
<input type="radio" value="2" name="sex" />
</form>
</body>
</html>