用FLASH和ASP做留言本-ASP篇(下)
发表于:2007-06-30来源:作者:点击数:
标签:
用FLASH和ASP做留言本-ASP篇(下)
有关send.asp,基本同view.asp
<%name=request("name")
text=request("text")
constr = "DRIVER={Microsoft A
clearcase/" target="_blank" >ccess Driver (*.mdb)};DBQ=" & Server.Mappath("luiyan.mdb") & ";"
set conn = server.createobject("ADODB.Connection")
conn.open constr
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from message"
rs.open sql,conn,2,2
application.lock
rs.addnew
rs("name")=name
rs("text")=text
rs.update
rs.close
application.Unlock
response.write("&sendok=1")
%>
原文转自:http://www.ltesting.net