请问添加asp记录为什么不成功?

来源:百度知道 编辑:UC知道 时间:2024/05/04 08:20:20
请问添加asp记录为什么不成功?
原程序
ASP.ASP表单程序如下:
<form name="form1" method="post" action="example5.asp">
name <input type="text" name="name"><br>
tel <input type="text" name="tel"><br>
message <input type="text" name="message" value=""><br>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</form>

example5.asp程序如下:

<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("book.mdb")
name=request.form("name")
tel=request.form("tel")
message=request.form("message")
exec="insert into guestbook(

先随便打开C盘或者其它盘,在 工具--文件夹选项--查看--不选中使用简单文件共享(推荐)(即前面没有勾).然后再到你用IIS打开的文件夹,右键,属性--安全--添加一个Everyone--设置为完全控制.就可以了!

exec 是execute的缩写 应该不能用 还有你response.write exec看看他是什么样的,是不是符合sql语句要求