<%@ page contentType="text/html;charset=gb2312" %>

<html>
<head>
  <title>Login.jsp</title>
</head>
<body>
	
<form action=Login.jsp method="POST" >
Login Name: <input type="text" name="Name"><br>
Login Password: <input type="text" name="Password" ><br>
<input type="submit" value="Send"><br>
</form>

<%	if (request.getParameter("Name") != null && request.getParameter("Password") != null) {		
		String Name = request.getParameter("Name");
		String Password = request.getParameter("Password");
		
		if (Name.equals("wanghong") && Password.equals("12345678")) {			
			session.setAttribute("Login", "OK");
			response.sendRedirect("Member.jsp");
		}
		else {			
			out.println("µÇÂ½Ê§°Ü£¬ÇëÊäÈëÕýÈ·Ãû³Æ");		
		}	
	}
%>

</body>
</html>