<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% If cstr(Request.Form("UserName"))<>"" Then If Request.form("checkbox") ="1" Then Response.Cookies("user_cookie") = Request.Form("UserName") Response.Cookies("pass_cookie") = Request.Form("password") Response.Cookies("remeber_cookie") = "1" Response.Cookies("user_cookie").expires = Date + 30 Response.Cookies("pass_cookie").expires = Date + 30 Response.Cookies("remeber_cookie").expires = Date + 30 Else Response.Cookies("remeber_cookie") = "" Response.Cookies("user_cookie") = "" Response.Cookies("pass_cookie") = "" End If End If %> <% ' *** 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="" MM_redirectLoginSuccess="welcome.asp" MM_redirectLoginFailed="login.asp?valid=false" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_conWorkoutLog_STRING MM_rsUser.Source = "SELECT UserName_ID, Password_ID" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM tblLogin WHERE UserName_ID='" & Replace(MM_valUsername,"'","''") &"' AND Password_ID='" & 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 ' 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 false 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 %> Welcome to CynthiaBarker.com

Welcome to the Personal Workout Log

When you sign up to use Cynthia's personal workout log you will be able to log your weight training, cardio, and nutritional progress in this easy-to-use and free online training application.

Click here to register

method=POST name="form1" onSubmit="YY_checkform('form1','UserName','#S','2','You must enter in your User Name \(your e-mail address\)','password','#q','0','You must enter in a password.');return document.MM_returnValue"> <% IF (Request.Querystring("valid") = "false") then%> Incorrect Username Or Password - Please Try Again <% End If%>
E-Mail Address:
" name="UserName" type="text" id="UserName">
Password:
" name="password" type="password" id="password">
Remeber Me: type="checkbox" name="checkbox" value="1">

 

home :: bio :: news :: gallery :: clients :: contact :: workout log
Copyright © 2002 Cynthia Barker. All rights reserved.