Abush
April 1st, 2004, 18:30
God it's been a long time since I did this so I forgot how to do it right
This is the asp code I did. There are two pages enter.html and login.asp for Enter.html this is the code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="login.asp">
<table width="75%" border="1">
<tr>
<td width="15%"><div align="right">User Name:</div></td>
<td width="85%"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td><div align="right">Password:</div></td>
<td><input name="pass" type="password" id="pass" value=""></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Login">
<input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
and for login.asp I have the following code
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<% Dim name, pass
name = Request.form("name")
pass = Request.form("pass")
%>
<%
If name="name" And pass="password"
Then Response.write("thank you for loging in")
Else Response.Redirect(enter.html)
End If
%>
</body>
</html>
I keep on geting a message that says that I cant use the method post in the folder I wanted. I put 777 for the permission but noting at all so help me please Ironicaly I am trying to help a friend and I ended up needing help :) and yes I did it in dreamweaver
This is the asp code I did. There are two pages enter.html and login.asp for Enter.html this is the code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="login.asp">
<table width="75%" border="1">
<tr>
<td width="15%"><div align="right">User Name:</div></td>
<td width="85%"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td><div align="right">Password:</div></td>
<td><input name="pass" type="password" id="pass" value=""></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Login">
<input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
and for login.asp I have the following code
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<% Dim name, pass
name = Request.form("name")
pass = Request.form("pass")
%>
<%
If name="name" And pass="password"
Then Response.write("thank you for loging in")
Else Response.Redirect(enter.html)
End If
%>
</body>
</html>
I keep on geting a message that says that I cant use the method post in the folder I wanted. I put 777 for the permission but noting at all so help me please Ironicaly I am trying to help a friend and I ended up needing help :) and yes I did it in dreamweaver