<% '******************************************************* '* ASP 101 Sample Code - http://www.asp101.com * '* * '* This code is made available as a service to our * '* visitors and is provided strictly for the * '* purpose of illustration. * '* * '* Please direct all inquiries to webmaster@asp101.com * '******************************************************* %> Account Password Page

Marketing Consultants for Small Business
Web Site Design
Email Newsletters
Print and Brochure Design
Trade Show Exhibit Design
Newspaper & Magazine Advertising
Direct Mail Projects
   

E-mail    Resume    Note Cards    Special Account Log On Page

 

Home

   

Special Account Log On Page

  Project Portfolio
News & Magazine  Ads
Brochures

Newsletters

Catalog

Mailers

POP Displays

T-Shirt designs

Old Photo Restoration

Photography

Web Site Optimization

Web Sites

 

  <% '************************************************************************** ' This type of script becomes more useful and managable when you are ' comparing these values to those stored in a database or some other source ' of user information instead of hard coding them into the actual code. ' Just be sure that if a data source error arises you don't inadvertantly ' end up giving access to the pages you are trying to protect! '************************************************************************** If Request.Form("corpid") = "friends" Then Response.Redirect "FamilyFriends.htm" elseif Request.Form("corpid") = "family" Then Response.Redirect "FamilyFriends.htm" elseif Request.Form("corpid") = "audioimage" Then Response.Redirect "AudioImage.htm" elseif Request.Form("corpid") = "bkelliher" Then Response.Redirect "bkelliher.htm" elseif Request.Form("corpid") = "PTPN" Then Response.Redirect "PTPN.htm" elseif Request.Form("corpid") = "ezx" Then Response.Redirect "ezx.htm" elseif Request.Form("corpid") = "rugby" Then Response.Redirect "Rugby.htm" elseif Request.Form("corpid") = "home" Then Response.Redirect "default.htm" elseif Request.Form("corpid") = "" Then : Else Response.Write "You have entered an invalid Password. Please try again or type - home - to return to the Home Page." '***************************************************************** ' Note: we don't use the next line so that our description below ' the script comes in. If you wanted to just stop everything here ' you would un-comment the next line and it would stop execution. '***************************************************************** 'un-comment End If %>

Enter Your Account Password: