这样修改可以吗?提交不了,是不是只要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" name="1" value="gender-man" /> <label>女</label> <input type="radio" name="1" value="gender-woman" /> </form> </body> </html>