ASP - Simple Login Script

Check out 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>

 

Read More: ASP.Net - Code For File Download

 

                    ASP.Net - Send Email Using System.Web.Mail Class

 

                    Basic ColdFusion Html File

                 

                   CPanel - How to Take Backup Of Your Website

 

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.

 

Hosting Companies insights

2977 Web Hosting Reviews A trusted source of genuine reviews. Learn Reviews
2355 Web Hosting Companies Ever-growing pool of web hosting providers. Browse Providers
2826 Web Hosting Coupons Exciting web hosting deals available here Browse Coupons
Share
Tweet
Share
Share
Share
Email