当前位置:编程学习 > asp >>

用FLASH和ASP做留言本-ASP篇(下)

                 用FLASH和ASP做留言本-ASP篇(下)
有关send.asp,基本同view.asp
<%name=request("name")
text=request("text")
constr = "DRIVER={Microsoft Access 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")
%>

补充:asp教程,高级应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,