<%'提交留言Dim user,ip,writetime,info,otheruser=Request("user")info=Request("info")'other=Request("other")If ip="" then ip=Request.ServerVariables("REMOTE_ADDR")writetime=now()DBPath=Server.MapPath("myData.mdb") '数据库存放路径Strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & DBPath '连接字符串Set conn = Server.CreateObject("ADODB.Connection") '新建一个连接 conn.open Strconn'strSQL="INSERT INTO TBL_LYB(User,IPAddress,Time,Info,Other) VALUES('"&user&"','"&ip&"','"&time&"','"&info&"','"&other&"')"strSQL="INSERT INTO TBL_LYB(User,IPAddress,wTime,Info) VALUES('"&user&"','"&ip&"','"&writetime&"','"&info&"')"conn.execute strSQLResponse.Write ("&writeResult=OK")conn.closeset conn=nothing%>