<%@ Language = "VBScript" %> <% Option Explicit Dim cnnLogin Dim rstLogin Dim strUsername, strPassword Dim strSQL Set cnnLogin = Server.CreateObject("ADODB.Connection") cnnLogin.Mode = 3 '3 = adModeReadWrite cnnLogin.Open("DRIVER={Microsoft Access Driver (*.mdb)};" _ & "DBQ=" & Server.MapPath("login.mdb")) %> Board Login
 
The Association for Operations Management


<% if request.form("dome1") = "1" then 'update password DIM temp strSQL = "SELECT * FROM tblLoginInfo WHERE " _ & "password='" & Request.Form("oldpass") & "';" Set rstLogin = cnnLogin.Execute(strSQL) if rstLogin.eof = false then temp = rstLogin("username") rstLogin.close cnnLogin.close set cnnlogin = nothing Set cnnLogin = Server.CreateObject("ADODB.Connection") cnnLogin.Mode = 3 '3 = adModeReadWrite response.write(Server.MapPath("login.mdb")) cnnLogin.Open("DRIVER={Microsoft Access Driver (*.mdb)};" _ & "DBQ=" & Server.MapPath("login.mdb")) strSQL = "UPDATE tblLoginInfo SET password='" & request.form("newpass") & "' WHERE username = '" & temp & "';" Set rstLogin = cnnLogin.Execute(strSQL) end if end if If Request.Form("dome") <> "validate_login" Then %>

 

Login:
Password:
 

<% Else strSQL = "SELECT * FROM tblLoginInfo " _ & "WHERE username='" & Replace(Request.Form("login"), "'", "''") & "' " _ & "AND password='" & Replace(Request.Form("password"), "'", "''") & "';" Set rstLogin = cnnLogin.Execute(strSQL) If Not rstLogin.EOF Then %>

Want to change your password?
User:
Old Password:
New Password:
 

 

Welcome to the Board of Directors' Page

This page is used to provide the APICS Hamilton Chapter Board of Directors with a common location for frequently used documents. Please contact Lee Johnson if you have any questions or concerns lkq@cogeco.ca

 

 

 

<% Else %>

Login Failed - Please verify username and password.

Try Again

<% 'Response.End End If ' Clean Up rstLogin.Close Set rstLogin = Nothing cnnLogin.Close Set cnnLogin = Nothing End If %>

 


Board Login | Web Designers | Web Master