尋求協助,怪問題

來源:互聯網
上載者:User
偶用的IIS6
使用的ASP

我這邊使用的中文版的XP都可以提交表單

但是使用者是用的英文版XP,可以正常瀏覽,但登入提交表單的時候卻無法執行。

是什麼原因呀

現在貼下代碼

<!--#include file="../public/ConstValue.asp"-->
<!--#include file="../login/Check.asp"-->
<%
stat = -1
name = Request("textfield")
password = Request("textfield2")
usertype = Request("select")
error = ""
stat = Login(name,password,usertype)
if(name <>"") then
if(stat=1) then
response.Redirect("/cadmin/index.asp")
else
error="使用者名稱密碼錯誤"
end if
else
error=""
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title> <%= GetTitle()%> </title>
    <link href="../css/Adminlogin.css" rel="stylesheet" type="text/css" />
</head>
<body scroll='no' style="background-color: #F6F6F6">
    <div id="iddivlogin" style="width:580px; position:absolute; z-index:5;">
    <form name="form1" id="form1" action="login.asp" method="post">
<table width="580" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td> <img src="../images/login_img/01.gif" width="580" height="136" onmousedown="did('iddivlogin')" /> </td>
      </tr>
    </table>
      <table border="0" cellpadding="0" cellspacing="0" class="tbg">
        <tr>
          <td align="center" valign="top">
          <table width="320" height="116" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="82" class="f14b">身份選擇: </td>
              <td height="29" colspan="2" align="left"> <select name="select" id="idselect1">
                <option value="5">超級管理員 </option>
              </select>              </td>
            </tr>
            <tr>
              <td class="f14b">用 戶 名: </td>
              <td width="174" height="29" align="left"> <input id="idtext1" type="text" name="textfield" /> </td>
              <td width="65" align="left"> <span id='idspan1' style="font-size:12px;color:#ff0000"> <%if(stat=0) then response.Write(error) end if%> </span> </td>
            </tr>
            <tr>
              <td class="f14b">密 &nbsp;&nbsp; 碼: </td>
              <td height="29" colspan="2" align="left"> <input id="idtext2" type="password" name="textfield2" onkeydown="idtext2keydown()" /> </td>
            </tr>
            <tr>
              <td height="29" align="center">&nbsp; </td>
              <td height="29" colspan="2" align="left"> <table width="120" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="73" align="left"> <a href="javascript:;" onclick="Login()"> <img src="../images/login_img/03.gif" style="border:none;" width="38" height="28" /> </a> </td>
                  <td width="70" align="left"> <a href="javascript:;" onclick="Reset()"> <img src="../images/login_img/04.gif" style="border:none;" width="38" height="28" /> </a> </td>
                </tr>
              </table> </td>
            </tr>
          </table>
          </td>
              </tr>
          </table>
    </form>
  </div>
  <div id='iddiv001'> </div>
</body>
<script type="text/javascript">
var Login=function(){
document.getElementById("form1").submit();
}

var Reset=function(){
    document.getElementById("idtext1").value="";
    document.getElementById("idtext2").value="";
}
var idtext2keydown=function(){
    if(event.keyCode==13){
        Login();
    }
}

function getBodyObj() 

  return (document.documentElement) ? document.documentElement : document.body; 
}

function initxy(){
document.getElementById("iddivlogin").style.marginLeft = parseInt(getBodyObj().clientWidth/2-290)+"px";
document.getElementById("iddivlogin").style.marginTop = "100px";
}
initxy();
</script>
</html>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.