
<input type="radio" name="radio" value="女" />女士</form>在asd.asp中写//取值sex = Request.Form["radio"]然后调用SQL语句就可以了。
单选表单的话,表示这一组选项的input的type设置为radio且name值必须一致:
将input标签置于label中,点击label的时候会自动选择里面的input;
input与label是独立分开的,关联两者的是input的id值和label的for值;两者一致的时候,点击label相当于触发关联的input,两者不相邻依然有效;
例子:
12345678<form action="">
<input id="fruit1" type="radio" name="fruit" value="苹果" />
<label for="fruit1">苹果</label>
<input id="fruit2" type="radio" name="fruit" value="香蕉" />
<label for="fruit2">香蕉</label>
<input id="fruit3" type="radio" name="fruit" value="橘子" />
<label for="fruit3">橘子</label>
</form>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)