日期:2014-05-17  浏览次数:20827 次

后台登陆不上去 无法跳转至相应页面 求大侠们帮帮忙。。。。
部分代码如下:
HTML code


<% Option Explicit %>
<!--#include file = "../asp/config.asp"-->

<%
'######################################
' eWebEditor v5.5 - Advanced online web based WYSIWYG HTML editor.
' Copyright (c) 2003-2008 eWebSoft.com
'
' For further information go to http://www.ewebsoft.com/
' This copyright notice MUST stay intact for use.
'######################################
%>

<%

Dim sAction, sErrMsg
Dim s_Usr, s_Pwd
sAction = UCase(Trim(Request("action")))
sErrMsg = ""

Select Case sAction
Case "LOGIN"
    s_Usr = Trim(Request("usr"))
    s_Pwd = Trim(Request("pwd"))
    If s_Usr = sUsername And s_Pwd = sPassword Then
        Session("eWebEditor_User") = s_Usr
        Response.Redirect "default.asp"
        Response.End
    End If
    sErrMsg = "提示:用户名或密码错误!"
Case "OUT"
    Session("eWebEditor_User") = ""
End Select

%>

<HTML>
<HEAD>
<TITLE>eWebEditor在线编辑器 - 后台管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
body,td,a,p,input{font-size:9pt}
body {margin:0px;background-color:#d9ddf7}
.c92 {FONT-SIZE: 9pt; COLOR: #003366; LINE-HEIGHT: 150%}
A:hover {COLOR: #ff9900}
A:link {COLOR: #003366}
.input {BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid}
</style>

<SCRIPT language=JavaScript>
function checkForm(){
    var frm = document.loginform
    if(frm.usr.value == ""){
        alert('用户名不允许为空');
        frm.usr.focus();
        return false;
    }
    if(frm.pwd.value == ""){
        alert('用户密码不允许为空');
        frm.pwd.focus();
        return false;
    }
    frm.submit()
}
</SCRIPT>

</head>
<BODY onload=document.loginform.usr.focus()>
<BR><BR>
<TABLE cellSpacing=0 cellPadding=0 width=500 align=center border=0>
  <TBODY>
  <TR>
    <TD height=60></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=732 align=center border=0>
  <TBODY>
  <TR>
    <TD colSpan=7><IMG height=1 alt="" src="images/spacer.gif" width=718></TD>
    <TD rowSpan=6>&nbsp; </TD>
    <TD><IMG height=1 alt="" src="images/spacer.gif" width=1></TD></TR>
  <TR>
    <TD vAlign=bottom colSpan=3 rowSpan=2><IMG height=201 alt="" src="images/2_10.gif" width=341></TD>
    <TD vAlign=bottom colSpan=2><IMG height=108 alt="" src="images/2_11.gif" width=295></TD>
    <TD colSpan=2>&nbsp; </TD>
    <TD><IMG height=110 alt="" src="images/spacer.gif" width=1></TD></TR>
  <TR>
    <TD background=images/1_12.gif colSpan=4>
      <TABLE cellSpacing=0 cellPadding=3 width="50%" border=0>
        <FORM onKeyDown="if(event.keyCode==13) return checkForm()" name=loginform action="?action=login" method=post>
        <TBODY>
        <TR>
          <TD class=c92 width="24%">用户名</TD>
          <TD width="76%"><INPUT class=input size=16 name=usr> </TD></TR>
        <TR>
          <TD class=c92 width="24%">密 码</TD>
          <TD width="76%"><INPUT class=input type=password size=16 name=pwd> </TD></TR>
        <TR>
          <TD width="24%">&nbsp;</TD>
          <TD width="76%">
            <DIV align=left>&a