请问,运行代码,不能“返回”按钮 回页面
请问,运行代码,不能“返回”按钮 回页面<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
set adocon=server.createobject("adodb.connection")
adocon.Open"Driver={SQL Server};Server=(Local);UID=sa;PWD=sa;"& _
"database=book;"
sql = "select * from book "
set rs=Server.CreateObject("Adodb.Recordset")
rs.open sql,adocon,1,3
rs.addnew
rs("email")=Input
rs("email")=Input3
rs("email")=Input4
rs("email")=Input5
rs.update
rs.close
set rs=nothing
response.Write("添加成功!")
response.Write("<a href=""regedit.asp"">返回</a>")
response.End()
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>验证注册表</title>
<style type="text/css">
<!--
.s2 {
color: #FF0000;
text-decoration: blink;
direction: inherit;
font-weight: 100;
font-family: "新宋体";
font-size: 24px;
font-variant: normal;
line-height: normal;
background-color: #FFFFFF;
border-top-color: #FFFFFF;
float: right;
}
.c3 {
font-family: "新宋体";
font-size: 24px;
font-style: normal;
line-height: normal;
font-weight: lighter;
text-decoration: blink;
border-top-color: #C2D3FC;
float: inherit;
border-right-color: #0099FF;
border-bottom-color: #33FFFF;
border-left-color: #66CCFF;
outline-color: #99FF00;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
clip: rect(auto,5cm,auto,auto);
}
.STYLE1 {font-size: 18px}
.STYLE4 {font-size: 12px}
-->
</style>
</head>
<body>
<div class="s2">填写注册信息</div>
<p> </p>
<div class="c3" >
<pre class="STYLE1"> *<strong> 必填项</strong>
<form id="form1" name="form1" method="post" action="regedit.asp">
电子邮箱:<input name="Input" type="text" /> *
<span class="STYLE4" id="emailTip"> 建议输入您的常用电子邮箱,以便我们联系您</span>
密 码:<input name="Input3" type="password" /> *
<span class="STYLE4" id="passwordTip"> 由6-16位字母、数字、特殊字符组成</span>
密码确认:<input name="Input4" type="password" /> *
<span class="STYLE4" id="password2Tip"> 确认密码必须和密码完全一致并注意区分字符大小写</span>
姓 名:<input name="Input5" type="text" /> *
<span class="STYLE4" id="truenameTip"> 请输入您的真实姓名,以方便企业找到您</span>
电话号码:<input name="Input6" type="text" /> *
<p>
验证码 :<input name="codeOK" type="text" size="6" onkeyup="value=value.replace(/[^\d]/g,'') "> <a href="#2" title="单击刷新此验证码"><img border=0 src="code.asp" onclick="this.src='code.asp'" /></a></p>
<%
session("code")=Session("GetCode")
if (request.form("codeOK"))<>null then
if int(session("code"))<>int(trim(request.form("codeOK"))) then
response.write "<script>alert('验证码错误!');history.go(-1); </script>"
response.end
else
response.write "<script>alert('正确!');history.go(-1); </script>"
response.end
end if
end if
%>
<center><p><input type="submit" name="Submit" value="提交" /> <input name="Input2" type="reset" value="重置" /></p>
</center></form>
</pre>
</div>
<p> </p>
</body>
</html>