PDA

View Full Version : Java Login help


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! :)

Aids10
02-07-2008, 05:14 AM
after searching all day, it seems that you must use a database or xml with this code for multiple users.

can someone please explain how i would do this?

what is a database or xml, and how would i set it up?

Thanks!