<!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>求高手告诉这题真确做法 谢谢!
2 回答
已采纳
sennhviwang
TA贡献5条经验 获得超17个赞
<!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>
- 2 回答
- 0 关注
- 1720 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消