<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<% 
if(Request("Submit")=="提交"){
	if(Request.Form("uid")=="ABC" && Request.Form("psw")=="123"){
		Response.Cookies("in")="OK";
	}else{
		Response.Cookies("in")="ERROR";
	}
	Response.Redirect("Cookies2.asp");
}
%>

<html>
<head>
<title>Cookie登陆</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <p>用户名：
    <input name="uid" type="text" id="uid" />
    <br />
  </p>
  <p>密&nbsp;&nbsp;码：
    <input name="psw" type="text" id="psw" />
</p>
  <p>
    <input type="submit" name="Submit" value="提交" />
  </p>
</form>
</body>
</html>
