ASP Password Verification Chapter

Source: Internet
Author: User
The following program is a AH wow dynamic management general procedures, very simple do not have to explain it!
If username= "admin" and password= "admin" then
Please remember to change the username and password of two admin respectively!

Login.asp



<title> Manager Login </title>
<link rel= "stylesheet" href= "DOWNLOAD". CSS ">


<body>
<div align= "center" ><center>

<table border= "0" cellspacing= "1" width= "90%" >
<tr>
<td> <form method= "POST" action= "chklogin.asp" >
<table width= "45%" border= "1" cellspacing= "0" cellpadding= "1" align= "center"
bordercolordark= "#ecf5ff" bordercolorlight= "#6699cc" >
<tr>
<td><table width= "100%" border= "0" cellspacing= "1" cellpadding= "1" >
<tr>
&LT;TD width= "33%" align= "right" height= "a" > Username:</td>
&LT;TD width= "67%" ><input name= "username" maxlength= "" class= "Smallinput" size= "> </td>
</tr>
<tr>
&LT;TD width= "33%" align= "right" height= "a" > Password:</td>
&LT;TD width= "67%" ><input type= "password" name= "password" maxlength= "class="
Size= "> </td>"
</tr>
<tr>
&LT;TD colspan= "2" height= "></td>"
</tr>
</table>
</td>
</tr>
&LT;TR align= "center" >
&LT;TD height= ">"
<input type= "Submit" name= "Submit" value= "OK" class= "ButtonFace" >

<input type= "reset" name= "Submit2" value= "rewrite" class= "ButtonFace" >
</td>
</tr>
</table>
</form>
<p align= "center" > </td>
</tr>
</table>
</center></div>
</body>



__________________________________________________________________

Chklogin.asp
<%
Dim sql
Dim rs
Dim Seekerrs
Dim founduser
Dim username
Dim CompanyID
Dim password
Dim errmsg
Dim Founderr
Founderr=false
Founduser=false
Username=request.form ("username")
Password=request. Form ("password")
If Username= "" Then
Response.Redirect "Index.asp"
End If
If password= "" Then
Response.Redirect "Index.asp"
End If

If username= "admin" and password= "admin" then
Response.Cookies ("Adminok") =true
Response.Redirect "Manage.asp"
Else
Response.Redirect "Index.asp"
End If
%>


Author: o Source: <asp Dynamic Online > http://asp.on.net.cn/

adjourned



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.