求教一个简单问题

snower01 2004-04-27 09:48:33
这是一个填报表单:
<tr>
<td>xxx</td>
<td><input type="radio" name="xxx" value="a">a</td>
<td><input type="radio" name="xxx" value="b">b</td>
</tr>
现在假设将a写入了数据库。下面这段代码肯定是错的。如果要修改它的值,代码怎样写?
<tr>
<td>xxx</td>
<td><input type="radio" name="xxx" value="<% = rs("?") %>">a</td>
<td><input type="radio" name="xxx" value="<% = rs("?") %>">b</td>
</tr>
谢谢!
...全文
27 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
huhanshan013 2004-05-01
  • 打赏
  • 举报
回复
><input type="radio" name="xxx" value="b" <% if rs("?")="b" then %> checked <%end if%>>b

肯定行,我们都是这样用的!
liuyangxuan 2004-05-01
  • 打赏
  • 举报
回复
没明白!
snower01 2004-04-30
  • 打赏
  • 举报
回复
再顶一下
snower01 2004-04-29
  • 打赏
  • 举报
回复
up
若白师妹 2004-04-29
  • 打赏
  • 举报
回复

<td><input type="radio" name="xxx" value="a" <% if rs("?")="a" then response.write "checked">a</td>
<td><input type="radio" name="xxx" value="b" <% if rs("?")="b" then response.write "checked">b</td>
snower01 2004-04-28
  • 打赏
  • 举报
回复
up
snower01 2004-04-27
  • 打赏
  • 举报
回复
如果要修改数据库中的a值,代码怎样写?

28,390

社区成员

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

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