对象不是一个集合的错误,各位大哥帮我看看这段代码哪错了!
<%
ttt=request.form("ttt")
set dic=server.createobject("scripting.dictionary")
for each item in ttt
dic.add item,item
next
set rs=server.createobject("ADODB.RecordSet")
sql="select * from Product"
rs.open sql,conn,1,1
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>系统管理</title>
<link href="../Styles/styleyc.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="State.asp">
<table width="100%" border="1" cellpadding="5" cellspacing="0" class="boxform">
<tr>
<td height="25" class="titlebar"><input type="submit" name="Submit" value="查 询" />
<input type="reset" name="Submit2" value="重 选" /></td>
</tr>
<tr>
<td><table width="600" border="0" cellpadding="0" cellspacing="0" class="boxform">
<tr>
<td><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120"><input name="ttt" type="checkbox" id="ProductName" value="ProductName" />
产品名称</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductModelID" value="ProductModelID" />
产品描术</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductSpecID" value="ProductSpecID" />
产品信息</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductColorID" value="ProductColorID" />产品颜色</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductSizeID" value="ProductSizeID" />
产品大小</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="600" border="0" cellpadding="5" cellspacing="0" class="boxform">
<tr>
<td><%for each item in dic
rs(item)
next%></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>