请高手看看我这段ASP代码中response.redirect为什么不起作用?

来源:百度知道 编辑:UC知道 时间:2024/05/10 13:49:22
<% @ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/md5.asp"-->
<%
dim struserid
dim struserpwd
dim stryanzhengma,stryzm
dim strSQL
struserid=trim(request.form("user"))
struserpwd=trim(request.form("pass"))
stryanzhengma=request.form("yanzhengma")
stryzm=Cstr(session("yanzhengma"))
if struserid="" or struserpwd=""then
FoundErr=true
ErrMsg=ErrMsg & "<br><li>用户名和密码不能为空!!!</li>"
end if
if stryanzhengma="" or stryanzhengma<>stryzm then
FoundErr=true
ErrMsg=ErrMsg & "<br><li>您输入的确认码和系统产生的不一致,请重新输入。</li>"
end if
if FoundErr=true then
call WriteErrMsg()
response.End()

Closeconn()
这个过程你没有写出
有可能照成错误
你将换成response.write "123456"则可以显示123456
说明你的程序可以运行到这里
那么我认为就是你的response.redirect 路径错误了
为了证实这两个观点哪个正确
你可以测试一下,一加上或删除掉这个过程
二,看正确登陆后是显示的原来的页面还是显示的找不到网页的页面,如果是后者就说明你的路径错误了呵呵,要注意跳转路径啊

关注一下