A simple user login interface ASP implementation

Source: Internet
Author: User
Tags interface reset
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>







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.