ASP - Simple Login Script

Hi,

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

Login Page Code: dologin.asp

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

Post Submit Page Code: login.asp

<%
If Request.Form("login") = "Shane" AND Request.Form("password") = "Shane" Then
Response.Write "Logged in Protected Area"
Else
Response.Write "Access Denied!"
'Response.End
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