<%
newsid=request("id")
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from guestbook where id="&newsid
rs.Open sql,conn,1,1
if request.querystring("action")="edit" then
laccess=Request.Form("laccess")
username=Request.Form("username")
email=Request.Form("email")
qq=Request.Form("qq")
address=Request.Form("address")
home=Request.Form("home")
face=Request.Form("face")
title=Request.Form("title")
head=Request.Form("head")
ip=Request.Form("ip")
content=Request.Form("f3_content")
rs("laccess")=laccess
rs("username")=username
rs("email")=email
rs("qq")=qq
rs("occation")=Address
rs("home")=home
rs("face")=face
rs("title")=title
rs("head")=head
rs("ip")=ip
rs("content")=content
action="ture"
if username="" then
error1="用户不能为空<BR>"
action="false"
end if
if title="" then
error1=error1&"标题不能为空<BR>"
action="false"
end if
if content="" then
error1=error1&"内容不能为空<BR>"
action="false"
end if
if len("content")>total then
error1=error1&"内容超过了"&total&"的限制"
action="false"
end if
if action="false" then
response.redirect("?action=error&error1="&error1&"")
else
rs.update
response.redirect"index.asp"
response.end
end if
elseif request.querystring("action")="" then
%>
显示
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
ODBC 驱动程序不支持所需的属性。
/cn/bbs/wriedit.asp,行 9
怎么回事