帮我看看这段ASP代码,谢谢啦!~

来源:百度知道 编辑:UC知道 时间:2024/09/21 00:43:43
这是聊天室中的一个聊天内容提交页面

<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<title>postmsg</title>
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" height="58" border="0">
<tr>
<td height="25" colspan="2">
<form action="postmsg.asp?act=addmsg&myself"=<%=request.QueryString("myself")%>
&toname=<%=request.QueryString("toname")%>"method="post" name="form1">
<input readonly type=text name=Fromname value="<%=request.QueryString("myself")%>">
<select name="rname">
<%if request.QueryString("toname")="" then%>
<option>大家</o

sqlout="server*from online where id order by id desc"



sqlout="select * from online where id order by id desc"

错在这里:rs.close

增删改的操作 RS会自动关闭 不会返回任何值的。
所以再使用RS.CLOSE时就出错了。

如果是select 操作 就应该要有rs.close了。

把这句话去掉就可以了。