<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Session.Contents.Remove("Cal_UserID") %> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString) MM_valUsername = CStr(Request.Form("User_Email")) If MM_valUsername <> "" Then Dim MM_fldUserAuthorization Dim MM_redirectLoginSuccess Dim MM_redirectLoginFailed Dim MM_loginSQL Dim MM_rsUser Dim MM_rsUser_cmd MM_fldUserAuthorization = "" MM_redirectLoginSuccess = "login_successful.asp" MM_redirectLoginFailed = "login.asp" MM_loginSQL = "SELECT User_Email, User_Password" If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization MM_loginSQL = MM_loginSQL & " FROM login WHERE User_Email = ? AND User_Password = ?" Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command") MM_rsUser_cmd.ActiveConnection = MM_dbconn_STRING MM_rsUser_cmd.CommandText = MM_loginSQL MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 60, MM_valUsername) ' adVarChar MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 10, Request.Form("User_Password")) ' adVarChar MM_rsUser_cmd.Prepared = true Set MM_rsUser = MM_rsUser_cmd.Execute If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then ' 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 If CStr(MM_rsUser.Fields.Item("User_Password").Value) = "acskids" Then Response.Redirect("change_password.asp?User_Email=" & Request.Form("User_Email")) MM_rsUser.Close End If MM_rsUser.Close Response.Redirect(MM_redirectLoginSuccess) End If MM_rsUser.Close Response.Redirect(MM_redirectLoginFailed) End If%> saigonkids

   Saigon Kids Web Site

Go to Nowhere
Go to News Pane
Go to the Times Pane
Go to the School Pane
Go to Phot Gallery
Go to Directory Pane
Go to Reunions Pane
Go to Newsletters pane
Go to Calendar
Go to Links pane
Go to contact us pane
Go to Home pane
Go to Login Pane

 

Saigon Kids Login
 
User Email:
User Password:
 

 

Home|Links|Contact Us|Top of Page