<!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="男" name="sex" />
<label>女</label>
<input type="radio" value="女" name="sex"/>
</form>
</body>
</html>
我感觉没错为什么提交时不让过 请检查代码中是否包含:value="1" name="sex",再试试!直接进入下一节
原题如下:
<!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-man" />
<label>女</label>
<input type="radio" value="2" name="sex-woman" />
</form>
</body>
</html>
求高手告诉这题真确做法 谢谢!
sennhviwang
农民杀马特