[phplib] Authenticating using an "external" form From: Anatole (varin <email protected>)
Date: 05/27/01

Hi all,

Perhaps an easy problem to solve for you, painful dilema for me:

I have a page full of information for the general public ("general.html")
with a little login box for authenticated users to access a protected area.
In that page of stuff I included a little log on box like so:

<form action="protected_page.php" method=post>
<input type=text name=password value="">
<input type=text name=username value="">
<input type=submit name="Submit!">
</form>

So, they'll enter their username and password and be directed to the
"protected_page.php"

I start "protected_page.php" with:
page_open(array("sess" => "groovy_Session", "auth" => "groovy_Auth"));

I thought that with the variables username and password being sent that it
would function similar to those variables being passed through the logon
form... Alas, it is not so. Upon submission of the above form from
general.html, I'm always greeted with the default log on page generated from
the phpLib template.

Anybody understand my poor explanation of my problem? If so, can you help?

TIA,

Anatole

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>