请帮我看看这段代码是怎么回事,
<form name="from" method="post" action="index.asp">
<table width="500" border="0" align="center">
<tr>
<td height="20" align="center" color="F336699">请输入网址</td>
</tr>
<tr>
<td height="20" align="center">请选择分类:
<select name="topics" height="20"><!--读取分类数据-->
<%rs.open"select * from assort",conn,1,1
while not rs.eof%>
<option value="<%=rs("topic")%>"><%=rs("topic")%></option>
<%rs.movenext
wend
rs.close%>
</select>
<input name="urls" type="text" value="输入完整的网址"/>
<input type="submit" name="add" value="添加" /></td>
</tr>
</table>
</form>
<%if request("add")="添加" then
if request("topics")="" then
response.write"名称不能为空!<meta http-equiv=refresh content='1;url=index.asp'>"
response.End()
else
if request("urls")="" then
response.Write"网址不能为空!<meta http-equiv=refresh content='1;url=index.asp'>"
response.End()
else
rs.open"select * from question",conn,1,1
rs.addnew
rs("topic")=request("topics")
rs("urls")=request("urls")
rs.update
rs.close
response.write"添加成功!<meta http-equiv=refresh content='1;url=index.asp'>"
response.End()
end if
end if
end if%>
错误类型:
ADODB.Recordset (0x800A0CB3)
当前记录集不支持更新。这可能是提供程序的限制,也可能是选定锁定类型的限制。
/index.asp, 第 49 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
网页:
POST 80 ??? /index.asp
POST Data:
topics=fdghdfgh&urls=%CA%E4%C8%EB%CD%EA%D5%FB%B5%C4%CD%F8%D6%B7&add=%CC%ED%BC%D3
我是想往数据库里添这两个数据,怎么搞啊