Web Hosting Articles
Categories
- Web Hosting (34)
- Control Panels (13)
- Dedicated Servers (12)
- Virtual Private Servers (9)
- Unix Linux Web Hosting (8)
- MS SQL Database Servers (5)
- Domain (5)
- Email Accounts (4)
- Hardwares (3)
- Web Hosting Plan (3)
- Shared Hosting (3)
- Costing (2)
- Windows Web Hosting (2)
- Plesk Web Hosting (1)
- Managed Dedicated Servers (1)
- Reseller Hosting (1)
- Log Files (1)
- FTP Access (1)
- Ecommerce (1)
- Unlimited Hosting (1)
- Unmanaged Dedicated Servers (1)
- Multiple Domain Hosting (1)
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">
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.
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.
Rate This Article
Recent Comments
Add comment
Web Hosting Directory
-
The web hosting directory is for anyone who is searching for website hosting and hosting related resources. The directory is listing Shared, VPS and Dadicated server plans in descending order for customer ratings !!! This web hosting directory is listing plans on the basis of 100% unbiased customer ratings. TheWebHostingDir.com provides you nice tool to easily search all types of web hosting plans including cheap web hosting, ASP.Net hosting, php mysql hosting, Cheap VPS Hosting, Windows VPS, HyperV VPS, Xen VPS and Cpanel VPS Hosting.

Quick search
Request a Quote
If you wish to receive proposals from Web Hosting Companies Suited to your needs.




how about a database version of this? just a simple ms access.. thanks and looking forwardPosted by : baptist churches in austin tx Oct 11th, 2011
Posted by : paolo Mar 15th, 2011