Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Login.

asp

<html>
<head>
<title>Cool Guy Login Page</title>
<meta http-equiv="content-type" content="" />
<style type="text/css">
.MainText
{
font-family:Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#LoginScreen
{
margin-top:150px;
width:350px;
height:175px;
border:2px;
border-color:#000000;
border-style:solid;
margin-left:350px;
padding:15px;
}
</style>
</head>
<body bgcolor="#FF3333">
<form action="form1.asp" method="post">
<div id="LoginScreen">
<div class="MainText"><strong>User Name: </strong><input type="text"
name="UName" size="15" /></div><br /><br />
<div class="MainText"><strong>Password : </strong><input type="password"
name="pwd" size="15" /></div>
<p>
<input type="submit" value="Submit" name="sub" /> &nbsp; &nbsp;<input type="reset"
value="Clear All" name="clear" />
</p>
</div>
</form>
<%
Dim UserName
UserName=request.form("UName")
Password=request.form("pwd")
If UserName="Prakash" and Password="ummah" Then
response.Redirect("form1.asp")
'Else
'response.Redirect("loginresult.asp")
End If
%>
</body>
</html>

Form1.asp

<html>
<head>
<title>CoolGuys Site</title>
<style type="text/css">
.MainText
{
font-family:Arial, Helvetica, sans-serif;
font-size:0.8em;
}
</style>
</head>
<body bgcolor="#990000">
<%
Dim UserName1
UserName1=request.Form("UName")
Response.Write "<span class='MainText'> Hello " & "<strong>Mr. " & UserName1 &
"</strong>" & " Welcome to the CoolGuys Site! </span>"
%>
</body>
</html>

loginresult.asp

<html>
<head>
<title>Login Result</title>
</head>
<body bgcolor="#993300">
<%
Response.Write "Dear Customer, Please check your User Name and Password"
%>
</body>
</html>

You might also like