checkbox提交问题

miao8106 2005-10-08 11:07:20
编号 产品 操作
1 1 □
2 2 □
3 3 □
4 4 □
前面的页面中所有数据从数据库中按照顺序读出,使用以下语句
<input class=ini name="<%=rs("ProductNumber")%>0" type="checkbox" value="on"></td>
采用了checkbox进行多选,选中后安提交按钮,提交到下一个页面,下一个页面从数据库中找出相应信息,按照以下排列
编号 产品 价格 等等
1 1
2 2
3 3
4 4

请帮帮忙,在线等!最好是完整的2页代码,因为小弟也是初学者,谢谢了,很急!
...全文
94 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ShiningstarHu 2005-10-08
  • 打赏
  • 举报
回复
<input class=ini name="<%=rs("ProductNumber")%>0" type="checkbox" value="on">
改称
<input class=ini name="ProductNumber"
type="checkbox" value="<%=rs("ProductNumber")%>">


接收页面:

strPNumber = Replace(Request.Form("ProductNumber"),",","','")

rs.open "Select * from yourtable where 产品 IN ('" & strPNumber & "')",conn,1,1

28,406

社区成员

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

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