New Hope Gospel Ministries
<% If cstr(Request.Form("Username"))<>"" Then If Request.form("checkbox") ="1" Then Response.Cookies("cUserName") = Request.Form("Username") Response.Cookies("cPassword") = Request.Form("Password") Response.Cookies("cRememberME") = "1" Response.Cookies("cUserName").expires = Date + 365 Response.Cookies("cPassword").expires = Date + 365 Response.Cookies("cRememberME").expires = Date + 365 Else Response.Cookies("cRememberME") = "" Response.Cookies("cUserName") = "" Response.Cookies("cPassword") = "" End If End If %> <% Dim rsLogin Dim rsLogin_numRows Set rsLogin = Server.CreateObject("ADODB.Recordset") rsLogin.ActiveConnection = MM_connSubscription_STRING rsLogin.Source = "SELECT * FROM tblPasswords" rsLogin.CursorType = 0 rsLogin.CursorLocation = 2 rsLogin.LockType = 1 rsLogin.Open() rsLogin_numRows = 0 %> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString MM_valUsername=CStr(Request.Form("Username")) If MM_valUsername <> "" Then MM_fldUserAuthorization="Active" MM_redirectLoginSuccess="sSort.asp" MM_redirectLoginFailed="login.asp?F=true" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_connSubscription_STRING MM_rsUser.Source = "SELECT UserName, Password,pwid" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM tblPasswords WHERE UserName='" & Replace(MM_valUsername,"'","''") &"' AND Password='" & Replace(Request.Form("Password"),"'","''") & "'" MM_rsUser.CursorType = 0 MM_rsUser.CursorLocation = 2 MM_rsUser.LockType = 3 MM_rsUser.Open If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then '/////////// new aug 25 2003 MM_valPWID=MM_rsUser("pwid") Session("svPWID2") = MM_valPWID '/////////// new aug 25 2003 ' username and password match - this is a valid user Session("MM_Username") = MM_valUsername If (MM_fldUserAuthorization <> "") Then Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value) Else Session("MM_UserAuthorization") = "" End If if CStr(Request.QueryString("accessdenied")) <> "" And true Then MM_redirectLoginSuccess = Request.QueryString("accessdenied") End If MM_rsUser.Close %> <% Response.Redirect(MM_redirectLoginSuccess) End If MM_rsUser.Close Response.Redirect(MM_redirectLoginFailed) End If %>

Log In - Existing Users
<% If Request("f") = "true" Then %>
Login Failed. Please try again.
<% End If %>
Username
" size="30">
Password
" size="30">
Remember password:
> Forgot password?


New Hope Gospel Ministries is a non-profit ministry (501 (c) 3) that is currently supported by your contributions.  If you would like to Partner with us in this ministry, click on the icon below.
          Official PayPal Seal