寻求帮助,怪问题
2008-06-18 15:12
183 查看
偶用的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">密 码: </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"> </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>
使用的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">密 码: </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"> </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>
相关文章推荐
- 寻求帮助——诺基亚N73安装第三方软件出现的问题
- 碰到技术问题时,如何寻求帮助
- delphi treeview控件问题,寻求帮助!!!
- 汇编菜鸟寻求帮助-----关于汇编中mov的最基本问题----问题很基础,望各位大神给予帮助!!
- 寻求高手帮助解决sql问题
- 域用户登陆遇到的问题!寻求帮助
- 在编程中遇到问题应如何寻求帮助
- 因为开发中遇到很多C++的问题,以后会经常来csdn寻求帮助了!
- DataTable.Column保留两位小位的问题 (论坛上一直没有答复,因此放博客上寻求帮助)
- “抱歉,您的 Microsoft 帐户出现问题。请转到 https://account.live.com 寻求帮助”错误在登录到 Xbox Live 时发生
- Single Number II:寻求一个Single Number的问题通解
- C#返回byte[]给dll的方法,寻求帮助
- 向外寻求问题的答案么?要靠自己去感悟
- AsyncTask 问题:求帮助
- 求帮助关于Web 标记库的问题
- 《转自天涯一篇文章》淡出IT投身传统行业,寻求前辈帮助
- 英文邮件寻求帮助的礼貌用语
- FTPClient.cs (采用定时器上传ftp服务器文件的时候出现问题,程序间断性崩溃,求帮助!!)
- VC 使用过程中所遇到的一些问题,汇总在这里,希望对后来者有些许帮助
- 总结最近项目开发中遇到的问题,希望对大家有所帮助!