IIS6
ASP
You can submit a form for any Chinese version of XP.
However, the English version of XP is used for normal browsing, but cannot be executed when you log on to submit the form.
Why?
Paste it nowCode
<! -- # 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 = "username and password 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> </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"> identity Selection: </TD>
<TD Height = "29" colspan = "2" align = "Left"> <select name = "select" id = "idselect1">
<Option value = "5"> super administrator </option>
</SELECT> </TD>
</Tr>
<Tr>
<TD class = "f14b"> User name: </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"> password & nbsp; Code: </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 ()"> </a> </TD>
<TD width = "70" align = "Left"> <a href = "javascript:;" onclick = "RESET ()"> </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.doc umentelement )? Document.doc umentelement: Document. Body;
}
Function initxy (){
Document. getelementbyid ("iddivlogin"). style. marginleft = parseint (getbodyobj (). clientwidth/2-290) + "PX ";
Document. getelementbyid ("iddivlogin"). style. margintop = "100px ";
}
Initxy ();
</SCRIPT>
</Html>