Interface
<% @LANGUAGE = "VBSCRIPT" codepage= "936"%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<script language= "javascript" type= "Text/javascript" >
<!--
function Savecookie ()
{
Document.cookie = "Name=" + document.getElementById ("name"). Value
+ "expires=01-jan-2008 23:59:59";//Can be modified as required
Document.cookie = "pass=" + document.getElementById ("Pass"). Value
+ "expires=01-jan-2008 23:59:59";//Can be modified as required
}
-->
</script>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>[request samples]</title>
<body>
<%
Username = request.cookies ("name")
Password = request.cookies ("Pass")
' You can insert user data queries here. and replace the following default password "admin"
If username = "" or password <> "admin" then
%>
<form method= "POST" >
<table>
<tr>
<td>please Input your name:</td>
<td><input type= "text" name= "name" id= "name"/></td>
</tr>
<tr>
<td>please input password:</td>
<td><input type= "password" name= "pass" id= "pass"/></td>
</tr>
<tr>
<td><input type= "Submit" value= "Submit"/></td>
<td><input type= "reset" value= "reset"/></td>
</tr>
</table>
</form>
<%else%>
<br/>
<p>
Hello! <%=username%>.<br>
There are <%=Request.TotalBytes%> bit ....
</p>
<%end if%>
</body>