<script>
function add()
{
for (i = 1; i < 3; i++)
{document.body.insertAdjacentHTML('beforeend','<input type=radio name=r'+i+' value=a> ');
document.body.insertAdjacentHTML('beforeend','<input type=radio name=r'+i+' value=b> ');
document.body.insertAdjacentHTML('beforeend','<input type=radio name=r'+i+' value=c> ');
document.body.insertAdjacentHTML('beforeend','<input type=radio name=r'+i+' value=d> <br>');
}
}
</script>
<body onload=add()>
<form method="POST" action="0.asp">
<p><input type="button" value="按钮" name="B3"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></p>
</form></body>
这样只要改变i的值就可以增加单选项,也实现了,但是我在服务器端不能接收到。
response.write request.form("r1")
请高手帮忙!