Announcement

Collapse
No announcement yet.

Simple Login Script in ASP

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple Login Script in ASP

    WordPress Hosting on SSD Servers
    Below mentioned is 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") = "Test" AND Request.Form("password") = "Test" Then
    Response.Write "Logged in Protected Area"
    Else
    Response.Write "Access Denied!"
    'Response.End
    End If
    %>

    Note: User and password are 'Test' and they are Case Sensitive.
    Last edited by admin; 08-21-2015, 06:26 AM.
Working...
X
Sign up for a News Letter Click here to sign up