<%@LANGUAGE="JAVASCRIPT"%> [an error occurred while processing this directive] [an error occurred while processing this directive] <% var srStudents = Server.CreateObject("ADODB.Recordset"); srStudents.ActiveConnection = MM_LoginTable_STRING; srStudents.Source = "SELECT LoginName, Password FROM LoginTable"; srStudents.CursorType = 0; srStudents.CursorLocation = 2; srStudents.LockType = 1; srStudents.Open(); var srStudents_numRows = 0; %> <% // *** Validate request to log in to this site. var MM_LoginAction = Request.ServerVariables("URL"); if (Request.QueryString!="") MM_LoginAction += "?" + Request.QueryString; var MM_valUsername=String(Request.Form("username")); if (MM_valUsername != "undefined") { var MM_fldUserAuthorization=""; var MM_redirectLoginSuccess="LogInGood.asp"; var MM_redirectLoginFailed="LogInBad.htm"; var MM_flag="ADODB.Recordset"; var MM_rsUser = Server.CreateObject(MM_flag); MM_rsUser.ActiveConnection = MM_LoginTable_STRING; MM_rsUser.Source = "SELECT LoginName, Password"; if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization; MM_rsUser.Source += " FROM LoginTable WHERE LoginName='" + MM_valUsername.replace(/'/g, "''") + "' AND Password='" + String(Request.Form("password")).replace(/'/g, "''") + "'"; MM_rsUser.CursorType = 0; MM_rsUser.CursorLocation = 2; MM_rsUser.LockType = 3; MM_rsUser.Open(); if (!MM_rsUser.EOF || !MM_rsUser.BOF) { // username and password match - this is a valid user Session("MM_Username") = MM_valUsername; if (MM_fldUserAuthorization != "") { Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value); } else { Session("MM_UserAuthorization") = ""; } if (String(Request.QueryString("accessdenied")) != "undefined" && false) { MM_redirectLoginSuccess = Request.QueryString("accessdenied"); } MM_rsUser.Close(); Response.Redirect(MM_redirectLoginSuccess); } MM_rsUser.Close(); Response.Redirect(MM_redirectLoginFailed); } %> Untitled Document
Site hosted by Angelfire.com: Build your free website today!

Sign In

Sign In

 

 

 

Instructions:

Enter you first and last name and your password.
<% srStudents.Close(); %>