怎么把值赋予checkbox(帮帮忙)
假使数据库KKK,表product里面有个字段tuijian是布尔型的,我想把数据库里面的值赋予checkbox,怎么实现啊,代码如下:(应该怎么修改下面的代码?)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("ADODB.Recordset")
sql="select * from Product"
rs.open sql,conn,3,2
%>
<body>
<table width="75%" border="1">
<tr>
<td>是否推荐:
<form name="form1" method="post" action="">
<p>
<input type="checkbox" name="checkbox" value="checkbox">
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form></td>
<td> </td>
</tr>
</table>
<% rs.close
set rs=nothing
%>
</body>
</html>