Log In to FX Printing
<%
////////////////////////////////
//// VALIDATE USERNAME/PASS ////
////////////////////////////////
if (String(Request("login")) == "Login"){
var uname = String(Request("userid"));
var pword = String(Request("password"));
var bool1 = false;
var out = "";
rs=Server.CreateObject("ADODB.Recordset");
rs.Open("SELECT * FROM tbl_Clients", Conn);
while(!rs.EOF){
if (uname == String(rs.fields.item("UserID"))){
bool1 = true;
if (pword == String(rs.fields.item("Password"))){
Session("username") = uname;
if (rs.fields.item("Admin") == true){ //// DON'T STRING A BOOLEAN!!!
Session("admin") = "admin";
Response.redirect("fxadminpage.asp"); //// ADMIN REDIRECTION
}
Response.redirect("fxuserpage.asp"); //// USER REDIRECTION
}
else{
out += "The password is invalid.
";
out += "Try Again";
}
}
rs.Move(1);
}
if (bool1 == false){
out += "The user name is invalid.
";
out += "Try Again";
}
rs.Close();
Conn.Close();
}
%>
<%
if (String(Request('logout'))=='Logout'){
Session.Abandon();
Response.Redirect('login.asp');
}
%>
Log In
In order to provide you with personalized service, we ask that you please log in.
If you're not an existing FX Member, please register. It's free and takes less than a minute! Forgotten your password?