复选按钮怎么写?
<form action="save.php" method="post" >
<label>性别:</label>
<label>男</label>
<input type="radio" value="1" name="gender" />
<label>女</label>
<input type="radio" value="2" name="gender" />
</form>
上面是单选按钮name=gender取名一定要一致 那么复选也是吗?
<form action="save.php" method="post" >
<label>性别:</label>
<label>男</label>
<input type="radio" value="1" name="gender" />
<label>女</label>
<input type="radio" value="2" name="gender" />
</form>
上面是单选按钮name=gender取名一定要一致 那么复选也是吗?
2015-10-05
举报