关于RADIOBUTTOM的问题

mayuhao 2002-06-14 10:22:30
请问一个简单问题,如果我想在表格的每一行插入两个RADIOBUTTOM,为了标识各行的不同,希望命名为Radiobuttom1-RadioburttomN,请问我该怎样写?
<%
i = 0
do while not rs_show.eof
i = i + 1
%>
<tr>
<td width="31%" height="29"><%=rs_show("bh")%></td>
<td width="27%" height="29"><%=rs_show("riqi")%></td>
<td height="29" width="42%">
<table width="100%" border="0">
<tr>
<td>
*** <input type="radio" name="radiobutton"&cstr(i) value="ok">
适合飞行</td>
<td>
*** <input type="radio" name="radiobutton"&cstr(i) value="cancel">
不适合飞行</td>
</tr>
</table>
</td>
</tr>
<%
rs_show.movenext

loop
%>
请问打***的两句有何错误?若错了该怎样写呢?
谢谢大家了。我是初学者,不好意思。
...全文
55 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
remanwang 2002-06-14
  • 打赏
  • 举报
回复
name="radiobutton<%=i%>"
possible_Y 2002-06-14
  • 打赏
  • 举报
回复
不行,必须写具体数字了
if request("radiobutton1" )="cancel" then
possible_Y 2002-06-14
  • 打赏
  • 举报
回复
*** <input type="radio" name="radiobutton"<%=cstr(i)%> value="ok">
适合飞行</td>
<td>
*** <input type="radio" name="radiobutton"<%=cstr(i)%> value="cancel">
不适合飞行</td
mayuhao 2002-06-14
  • 打赏
  • 举报
回复
谢谢,再问一下,如果要判断时,格式又怎样呢?

是<%
if request(="radiobutton<%=i%>" )="cancel" then
...
%>
吗?

gq 2002-06-14
  • 打赏
  • 举报
回复
我来催分。。嘿嘿。。
wangfei2428 2002-06-14
  • 打赏
  • 举报
回复
name="radiobutton<%=i%>"
即可
mayuhao 2002-06-14
  • 打赏
  • 举报
回复
OK
mayuhao 2002-06-14
  • 打赏
  • 举报
回复
我希望在RADIOBUTTON后加上编号,但不知怎样写
如果格式不对,正确格式应该是怎样的呢?
其实只要能区分每一行就行了
wangfei2428 2002-06-14
  • 打赏
  • 举报
回复
name="radiobutton<%=i%>"
即可
gq 2002-06-14
  • 打赏
  • 举报
回复

<input type="radio" name="radiobutton"&cstr(i) value="ok">
适合飞行</td>
改为:
<input type="radio" name="radiobutton<%=i%>" value="ok">
适合飞行</td>
<input type="radio" name="radiobutton"&cstr(i) value="cancel">
改为:
<input type="radio" name="radiobutton<%=i%>" value="cancel">
xgn 2002-06-14
  • 打赏
  • 举报
回复
name="radiobutton"&cstr(i) 格式不对。
cstr(i)?
xuelang 2002-06-14
  • 打赏
  • 举报
回复
<input type="radio" name="radiobutton"&"<%=i%>" value="ok">
或者
<% radioname="radiobutton" & i %>
<input type="radio" name="<%=radioname%>" value="ok">
你再试试吧

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧