set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq=" & server.mappath("chat.mdb")
nam=trim(request("nam"))
chat=trim(request("textarea"))
sql="insert into " &session("t")& "talk,nam,mytime) values ('"+chat+"','"+nam+"','"&now()&"')"
conn.execute sql
在上面