刷新之后就会提交,为什么!!在线等候??
if request.Form("submit")<>"" thentitle=request.form("title")
email=request.form("email")
url=request.form("url")
lianxi=request.form("lianxi")
bodys=request.form("bodys")
end if
set ly=server.createobject("adodb.recordset")
ly.open "select * from liuyan",conn,1,3
ly.addnew
ly("title")=title
ly("email")=email
ly("url")=url
ly("lianxi")=lianxi
ly("bodys")=bodys
ly.update
response.Write("<script>alert('留言成功!!');</script>")
这一段代码有问题,在提交之后,就是添加一条记录,刷新也会添加一条记录,请问如何改才能完善呢??帮帮忙???