[phplib] Loginform on every page From: mark <email protected>
Date: 04/06/01

Hi list,

i have a login form on every page of my site. There, the user may
login with his username and password. Then, the form-variables are
sent to _the same_ page (not a seperate login page, because the same
form submits other variables to the script).
In top of every page, i have the following code:

 if ($password) {
  $auth->login_if($auth->auth["uid"] == "nobody");
 }

 Now, if I try to login, I get everytime first the loginform.ihtml
 saying either my password or my username are wrong (but they aren't),
 and after "relogin" there, I am logged in.

 Could anyone help me with that problem?

 Thanks,

 Mark

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