View Single Post
slodave slodave is offline
Registered
 
slodave's Avatar
 
Join Date: Sep 2005
Location: Encino Man
Posts: 22,394
Garage
Send a message via Skype™ to slodave
Can you put the page you want into a new sub directory? If so, use htaccess.

http://www.javascriptkit.com/howto/htaccess3.shtml

If you use a field, then you would have to use javascript, perl or php to make read the password field.

In php, it would look something like this:
If the password field has a name of password and the password is "test1234", then when variable is passed to the next page, the php code would...

$variable = $password;

PHP Code:
if ($variable == 'test1234') {
echo 
"that is the correct password.";

} else {

echo 
"Sorry, you loose!";


Dave
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs.

'84 Targa - Arena Red - AX #104
'07 Toyota Camry Hybrid - Yes, I'm that guy...
'01 Toyota Corolla - Urban Camouflage - SOLD
Old 06-05-2008, 02:56 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)