[thelist] Password verification then redirect

Bob Haroche bharoche at usa.net
Tue Jan 2 19:34:08 CST 2001

Here's a re-tread of a an old post of mine from another group.  This should


> He wants the *password* to dictate which page the
> user goes to.

You can do this with plain old javascript, but it's not terribly secure.
Here's a tutorial on how to do it though:


If your server is apache you can password protect your directories using
.htaccess, which is more secure.  Once that's done, the following syntax
should take you into the protected directory without the common, pop up
password box.


You can then create your login form and use javascript to take the values
from the form fields and pass them into a URL in the above syntax.  I just
did this on this page:


You can try it logging in as "test" with the password "qwerty1".  You'll end
up at this URL:


If you close your browser and go to that URL directly, you'll get the pop up
dialogue box.


O n P o i n t  S o l u t i o n s
P.O. Box 694
Occidental, Ca  95465
----- Original Message -----
From: "Paul" <paul.fisher at bushwhacker.co.uk>
To: <thelist at lists.evolt.org>
Sent: Tuesday, January 02, 2001 2:20 AM
Subject: [thelist] Password verification then redirect

> Firstly, hope you all had a great 'turn-of-the-real-millennium'
> Secondly, and rather sadly, back to work...
> Can anyone direct me to a simple script that will take a username and
> password, validate it (preferably with .htaccess and .passwd files), and
> then send the user to his or her own sub directory.  I've looked all over
> for one of these but can't find one...
> Cheers,
> Paul
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list