sicknote
05-14-2005, 02:03 PM
i was woudering if this worked
this is page source code is called login.asp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Results -- Login</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body bgcolor="#FFFFFF">
<FORM ACTION="Login_Validate.asp" METHOD="post">
<p>
<h3Login</h3>
<br>
<p>
<TABLE BORDER=0>
<TR>
<TD ALIGN="right">User name:</TD>
<TD><INPUT TYPE="text" NAME="login" size="10" VALUE=''></INPUT></TD>
</TR>
<TR>
<TD ALIGN="right">Password:</TD>
<TD><INPUT TYPE="password" NAME="password" size="10" VALUE=''></INPUT></TD>
</TR>
<TR>
<TD>
<input TYPE="hidden" NAME="requester" VALUE="<%=Server.HtmlEncode(Request("requester"))%>">
</TD>
<TD>
</TD>
</TR>
<TR>
<TD align="left">
<INPUT TYPE="submit" VALUE="Login"></INPUT>
</TD>
<TD>
</TD>
</TR>
</TABLE>
</FORM>
</body>
</html>
and then this page is called Login_Validate.asp
<!--#include file="login.asa"-->
<%
' if any of the variables do not match, create error message
if Request.Form("login") <> Username or Request.Form("password") <> Password then
MsgErr = "<h3>Authorization Failed.</h3>" & "<br>" & "<a href=login.asp>Please try again.</a>"
Response.Write MsgErr
Else
Session(SiteId) = true
' redirect
If Len(Request("requester")) > 0 Then
Response.Redirect (Request("requester"))
Else
Response.Redirect "database_editor.asp"
End if
End if
%>
<body bgcolor="#FFFFFF">
and this is called login.asa which is the database for everything included in this page
<%
SiteId="{BF25167A-8DF3-4865-9AF0-BEABC7D89585}"
Username="Username"
Password="Password"
%>
if anyone could help then it would be grately appriciated
thanks
this is page source code is called login.asp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Results -- Login</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body bgcolor="#FFFFFF">
<FORM ACTION="Login_Validate.asp" METHOD="post">
<p>
<h3Login</h3>
<br>
<p>
<TABLE BORDER=0>
<TR>
<TD ALIGN="right">User name:</TD>
<TD><INPUT TYPE="text" NAME="login" size="10" VALUE=''></INPUT></TD>
</TR>
<TR>
<TD ALIGN="right">Password:</TD>
<TD><INPUT TYPE="password" NAME="password" size="10" VALUE=''></INPUT></TD>
</TR>
<TR>
<TD>
<input TYPE="hidden" NAME="requester" VALUE="<%=Server.HtmlEncode(Request("requester"))%>">
</TD>
<TD>
</TD>
</TR>
<TR>
<TD align="left">
<INPUT TYPE="submit" VALUE="Login"></INPUT>
</TD>
<TD>
</TD>
</TR>
</TABLE>
</FORM>
</body>
</html>
and then this page is called Login_Validate.asp
<!--#include file="login.asa"-->
<%
' if any of the variables do not match, create error message
if Request.Form("login") <> Username or Request.Form("password") <> Password then
MsgErr = "<h3>Authorization Failed.</h3>" & "<br>" & "<a href=login.asp>Please try again.</a>"
Response.Write MsgErr
Else
Session(SiteId) = true
' redirect
If Len(Request("requester")) > 0 Then
Response.Redirect (Request("requester"))
Else
Response.Redirect "database_editor.asp"
End if
End if
%>
<body bgcolor="#FFFFFF">
and this is called login.asa which is the database for everything included in this page
<%
SiteId="{BF25167A-8DF3-4865-9AF0-BEABC7D89585}"
Username="Username"
Password="Password"
%>
if anyone could help then it would be grately appriciated
thanks