ASP - Simple Login Script


Checkout this Simple Login Script [POST Method] in ASP:

Login Page Code: dologin.asp

<FORM ACTION="login.asp" METHOD="post">
<TD ALIGN="right">Login:</TD>
<TD><INPUT TYPE="text"NAME="login"></INPUT></TD>
<TD ALIGN="right">Password:</TD>
<TD><INPUT TYPE="password" NAME="password"></INPUT></TD>
<TD ALIGN="right"></TD>
<TD><INPUT TYPE="submit" VALUE="Login"></INPUT>
<INPUT TYPE="reset" VALUE="Reset"></INPUT>

Post Submit Page Code: login.asp

If Request.Form("login") = "Shane" AND Request.Form("password") = "Shane" Then
Response.Write "Logged in Protected Area"
Response.Write "Access Denied!"
End If

Note: User and password are 'Shane' and they are Case Sensitive.
Add comment Share
Hosting Companies insights
1404 Web Hosting Reviews A trusted source of genuine reviews. Learn Reviews
2628 Web Hosting Companies Ever-growing pool of web hosting providers. Browse Providers
2211 Web Hosting Coupons Exciting web hosting deals available here Browse Coupons