<%
set conn=server.CreateObject("adodb.connection")
conn.open "dbq="&server.MapPath("data/data.mdb")&";driver={microsoft access driver (*.mdb)}"
xingming=request.form("xingming")
huxing=request.form("huxing")
dianhua=request.form("dianhua")
sql="insert into liu(a,b,c) values('"&xingming&"','"&huxing&"','"&dianhua&"')"
conn.execute(sql)
%>
<script>
alert('你已经成功的提交');
window.location=('index.html');
</script>
插入数据
最新推荐文章于 2024-08-16 15:17:01 发布