View Single Post
jcunning jcunning is offline
Porsche 911 SC, SAAB SPG
 
Join Date: Sep 2007
Location: Charlotte, NC
Posts: 308
The easiest way to do this is to have an opening page that presents a password text box and a button. The user then puts in the password and hits the okay button.

You run a javascript to check the password and either load the protected page, or throw up an error message saying to try again.

You also need to prevent the protected page from loading if someone is smart enough to put in the URL directly. Another javascript could handle this on the protected page. You will probably need a flag of some kind on the client side to see if they typed in the password or not.

There are other ways to do this as others may comment. This is just what came to my head first.
__________________
Jeff C
Old 07-22-2009, 01:05 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)