Aids10
02-06-2008, 08:10 PM
I am trying to modify my existing login.asp to include two user names and passwords.
This is the existing working code:
<%
If (Request("USERNAME") <> "admin") Or (Request("PASSWORD") <> "admin") Then
Response.Redirect("index.asp?failedlogin=true&USERNAME=" & Request("USERNAME"))
End If
Response.Write Chr(13) ' prints out a carriage return as output in case the page is browsed to directly
%>
What should the operands/operator look like to include another user/pass??
"user | admin"
"user ^ admin" ?? I am clueless :(
I do not want to have a database.
Greatly appreciate any help! :)
This is the existing working code:
<%
If (Request("USERNAME") <> "admin") Or (Request("PASSWORD") <> "admin") Then
Response.Redirect("index.asp?failedlogin=true&USERNAME=" & Request("USERNAME"))
End If
Response.Write Chr(13) ' prints out a carriage return as output in case the page is browsed to directly
%>
What should the operands/operator look like to include another user/pass??
"user | admin"
"user ^ admin" ?? I am clueless :(
I do not want to have a database.
Greatly appreciate any help! :)