%@ Language=JavaScript%> <% /* Connection Pooler */ var ConnectionCache = new ConnectionCache() /* server-side recordset */ var Customers = new Recordset("Customers", "Eclectic", "sa", "", "SELECT dbo.Eclectic_Customers.CustomerID, dbo.Eclectic_Customers.FirstName, dbo.Eclectic_Customers.LastName, dbo.Eclectic_Customers.EmailAddress, dbo.Eclectic_Customers.Password, dbo.Eclectic_Customers.BillingAddress, dbo.Eclectic_Customers.BillingCity, dbo.Eclectic_Customers.BillingState, dbo.Eclectic_Customers.BillingCountry, dbo.Eclectic_Customers.BillingZip, dbo.Eclectic_Customers.CreditCardTypeID, dbo.Eclectic_Customers.CreditCard, dbo.Eclectic_Customers.CardExpMo, dbo.Eclectic_Customers.CardExpYear, dbo.Eclectic_Customers.ShippingAddress, dbo.Eclectic_Customers.ShippingCity, dbo.Eclectic_Customers.ShippingState, dbo.Eclectic_Customers.ShippingCountry, dbo.Eclectic_Customers.ShippingZip, dbo.Eclectic_Customers.Phone, dbo.Eclectic_Customers.Fax, dbo.Eclectic_Customers.TimeStamp FROM dbo.Eclectic_Customers", "CustomerID", true, 2, 3, 3, ""); Customers.Open(); Customers.ProcessAction(); Customers.SetMessages("",""); Customers_Server(); %> <% function Customers_Server() { if (String(Request("LoginButton")) != "undefined") { var filter_string = "EmailAddress" + "= '" + String(Request("UserName")) + "' AND " + "Password" + " = '" + String(Request("Password")) + "'"; var toforward = "CustomerID" Customers.Filter(filter_string); if (Customers.IsBOF() && Customers.IsEOF()) { Response.Redirect(escape("FailedLogin.asp")); } else { Session("SessionPassword")="Customer"; if (toforward!="") Session("CustomerID")=String(Customers.GetColumnValue("CustomerID")) Response.Redirect(escape("CheckOut.asp")); } } } %>