Division 4 Logo

Division 4 NMRA MCR

NATIONAL MODEL RAILROAD ASSOCIATION
MID-CENTRAL REGION
NMRA LogoMCR Logo

Member's Login Page 3/31/2012

<% if request("comebackto") <> "" then sReferer = request("comebackto") sGoBackTo = "?" & request.querystring end if if request("cmdLogin") <> "" then 'Login Form submitted sUserName = request("txtUserName") sPassword = request("txtPassword") 'Check for username and password... if you have a lot of users you might want to use a table or an sql database to do a lookup and see if what was entered is valid. if sUserName = "bill" And sPassword = "gates" then bLoginSuccessful = True end if session("UserName") = sUserName 'After a successful login, let's send the user 'back to the page requested. The variable sReferer 'holds the page to go back, if it is empty, we should 'redirect the user to our default page. if sReferer = "" then response.redirect "index.asp" else response.redirect sReferer end if else 'Display the Login Form %>

Username
Password

<% end if %>

This page last updated:

Headline 3

insert content here