蒸馏:请高手帮帮忙:ASP表单提交后如何正确显示自己的页面?多谢了

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/02 19:32:15
我的源程序是这样的:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>表单提交</title>
</head>

<body>
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("guestbook.mdb")
name=request.form("name")
psw=request.form("psw")
exec="insert into guest(name,psw)values('"+name+"', '"+psw+"')"
conn.execute exec
conn.close
set conn=nothing
%>
<%
response.write "您已成功参加本次活动"
%>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>

</body>

</html>
但表单提交后总是说无法显示,请指教其中的错误.另外想问一下,如果想将表单提交后引到别的页面上该如何执行?
谢谢!

但表单提交后总是说无法显示??指的是什么???
报错的内容是什么??
另外,让网页转向可以使用 response.redirect(url)重定向到url上去!

exec="insert into guest(name,psw)values('"+name+"', '"+psw+"')"
不对吧,你试这个
exec="insert into guest(name,psw)values('" & name & "', '" & psw & "')"
我想就ok了呵呵,
我的电子信箱sdxy@zj.com
有事请联系呵呵