<!--#include file="conn1.asp" -->
<%
If(Request.ServerVariables("REQUEST_METHOD")="POST") Then
	name=request.form("name")
	pass=request.form("pass")
	If(name="" or len(name)>10) Then
		sm=sm &"请填写用户名并小于10位数\n"
	End if
	If(pass="" or len(pass)>10) Then
		sm=sm &"请填写密码并小于10位数\n"
	End if
	If(sm="") Then	
		if (ChkPost()=false)then
		Response.Redirect MySelf
		End if
		if(validpersonal(name,pass))then
			session("name")=name
			session("pass")=pass
			Response.Redirect("editpass.asp")
			Response.end
		else
			sm=sm &"用户名密码输入错误\n"
		End if
	End if
	If(sm<>"") Then
		Response.Write "<SCRIPT language=JavaScript>"
		Response.Write "alert('"& sm &"')"
		Response.Write "</SCRIPT>"
	End if
End if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>flashballot1.0</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="middle"><form name="form1" method="post">
      <table width="220"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999900" class="zw">
        <tr>
          <td height="20" align="center" bgcolor="#99CC00"><strong><font color="#FFFFFF">用户登陆</font></strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF" class="zw">
            <tr bgcolor="#FFFFFF">
              <td width="29%">用户名:</td>
              <td width="71%"><input name="name" type="text" class="kuan1" id="name" size="15" maxlength="10" value="<%=name%>"></td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td>密 码:</td>
              <td><input name="pass" type="password" class="kuan1" id="pass" size="15" maxlength="10" value="<%=pass%>"></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="an1" value=" 登 陆 ">
            &nbsp;
            <input name="Submit2" type="reset" class="an1" value=" 重 写 "></td>
        </tr>
      </table>
      <br>  
      <br>
      <br>
      <br>
      <br>
      <br>
    </form></td>
  </tr>
</table>
</body>
</html>
<%
set rs=nothing
set conn=nothing
%>