读取错误?

x98188 2004-02-06 02:59:15
为什么不能正确读取数据库里面的值,复选框读取时候老是打上勾。


主要代码如下:





productcheck.asp


<a href="prorem.asp?Product_No=<%=rs("Product_No")%>">是否推荐</a>





prorem.asp


title>推荐商品</title>


</head>


<!--#include file="Conn.asp" -->


<%


set rs=server.createobject("ADODB.Recordset")


sql="select * from Product where Product_No="& Product_No


rs.open sql,conn,1,3





%>


<body>


<table width="75%" border="1">


<tr>


<td>是否推荐:


<form name="form1" method="post" action="prorem.asp?Product_No=<%=rs("Product_No")%>">


<p></p>


<table width="75%" border="1">


<tr>


<td width="44%"><input name="checkbox" type="checkbox" <%If rs("tuijian")=true Then%>checked<%End If%>></td>


<td width="56%">  </td>


</tr>


</table>


<p>


<input type="submit" name="Submit" value="提交">

...全文
28 37 打赏 收藏 转发到动态 举报
写回复
用AI写文章
37 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,407

社区成员

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

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