Mister B.
07-02-03, 05:00 PM
Hi, this is my first time on these forums, I hope you guys can help me out.
this is code from the login page:
<FORM name="formchecker" METHOD="POST" onSubmit="return Allfull(this)" ACTION="/sagaofchaos/loginreact.asp">
Username : <INPUT TYPE="text" Name="username" class=FormControls>
Password : <INPUT TYPE="password" Name="pssword" class=FormControls>
<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="LOGIN" class=FormControls2>
<SCRIPT LANGUAGE=JAVASCRIPT>
function Allfull(theform)
{
if ((theform.username.value == "") || (theform.pssword.value == "")) {
alert("Please enter a username and a password.");
return (false);
}
else { return (true); }
}
this is the code from the loginreact page:
<%'Option Explicit%>
<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
Dim connstr
connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/sagaofchaos/db/users.mdb")& ";PWD=pssword;"
set RS = server.CreateObject("ADODB.Recordset")
conn.Open connstr
Dim rs, strSQL, i
strSQL = "SELECT * FROM users WHERE username = '" & Request("username") & "'"
RS.open "users", Conn, 2, 3
If Not RS.EOF Then
IF RS("pssword") = Request("pssword") Then %>
Login succesfull.
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<%
Response.Cookies("sagaofchaos")("user") = rs("username")
Response.Cookies("sagaofchaos")("admin") = rs("admin")
%>
<% ELSE %>
Login Failed
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<% End If %>
<% ELSE %>
Login Failed
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<% End If %>
for some reason whether or not you use the right username and password, this site always returns Login Failed, except for the newest member, can anyone tell me why?
this is code from the login page:
<FORM name="formchecker" METHOD="POST" onSubmit="return Allfull(this)" ACTION="/sagaofchaos/loginreact.asp">
Username : <INPUT TYPE="text" Name="username" class=FormControls>
Password : <INPUT TYPE="password" Name="pssword" class=FormControls>
<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="LOGIN" class=FormControls2>
<SCRIPT LANGUAGE=JAVASCRIPT>
function Allfull(theform)
{
if ((theform.username.value == "") || (theform.pssword.value == "")) {
alert("Please enter a username and a password.");
return (false);
}
else { return (true); }
}
this is the code from the loginreact page:
<%'Option Explicit%>
<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
Dim connstr
connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/sagaofchaos/db/users.mdb")& ";PWD=pssword;"
set RS = server.CreateObject("ADODB.Recordset")
conn.Open connstr
Dim rs, strSQL, i
strSQL = "SELECT * FROM users WHERE username = '" & Request("username") & "'"
RS.open "users", Conn, 2, 3
If Not RS.EOF Then
IF RS("pssword") = Request("pssword") Then %>
Login succesfull.
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<%
Response.Cookies("sagaofchaos")("user") = rs("username")
Response.Cookies("sagaofchaos")("admin") = rs("admin")
%>
<% ELSE %>
Login Failed
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<% End If %>
<% ELSE %>
Login Failed
<A HREF="http://WWW.sagaofchaos.tk">Click here to return home</a>
<% End If %>
for some reason whether or not you use the right username and password, this site always returns Login Failed, except for the newest member, can anyone tell me why?