[glow=200,blue,1]世界上妞是无限的,而我们的精力是有限的,用有限去搞无限,死定了。要用有限的精力去泡一个有钱妞,要发达,吃软饭![/glow]
下面就是提交的页面,
一定要把数据库名和表名改一下
<%@LANGUAGE="VBSCRIPT"%>
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft ACCESS driver (*.mdb)};dbq="&server.mappath("a0.mdb")
set rs=Server.CreateObject("adodb.recordset")
rs.open "select * from guestbook" ,conn,1,3
rs.addnew
rs("name")=request.form("name")
rs("tel")=request.form("tel")
rs("message")=request.form("message")
rs.update
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
<html>
<head>
<title>example5</title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="760" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center">
<%response.write"记录添加成功!"%>
</div></td>
</tr>
</table>
</body>
</html>