if request.form("reviewname")="" then
' Request.Form("reviewname")
'response.redirect"index.asp"
response.write"请填写您的大名!!返回重输"
response.end
end if
if request.form("review")="" then
' Request.Form("review")
'response.redirect"index.asp"
response.write"评论内容不能为空,请重输入返回重输"
response.end
end if
if len(request.form("review"))>800 then
response.write"评论内容不能太多,请重输入返回重输"
response.end
end if
reviewname=request.form("reviewname")
review=htmlencode2(request.form("review"))
face=Request.Form("face")
reviewurl=Request.Form("reviewurl")
articleid=request("id")
u_id=request("u_id")
set rs=server.createobject("adodb.recordset")
sql="select review,reviewcount from learning where articleid="&articleid
rs.open sql,conn,3,3
rs("reviewcount")=rs("reviewcount")+1
rs("review")=rs("review")&" 评论者:"&reviewname&_
"评论日期:"&GetDateTime(now())&" "&_
review&" "
rs.update
rs.close
set rs=noting
conn.close
set conn=nothing
response.redirect "review.asp?ID="&request("id")
%>