Date: 01/02/01
- Next message: abdel: "Re: [phplib] mssql problem"
- Previous message: nathan r. hruby: "Re: [phplib] PHP 4.0.4 and template blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would like to understand better when and where I can safely redirect a
user to a new page during the authentication process. Here are two
scenarios where I'd like to do this:
1. I have a login form in the sidebar of my navigation. If the user uses it
to log in correctly, I stay on the page, but if they make a mistake, I'd
like to redirect them to a more detailed login page, with a full error
message (there's no room in the sidebar), help notes and the like.
(I'm using this method for the sidebar login form:
<http://marc.theaimsgroup.com/?l=phplib&m=97421257318116&w=2>)
2. I want the user to register, and then have to confirm their registration
by clicking on a link in an e-mail that I'll send them. I can send the
e-mail, I can change their status when they click the link, and I can
prevent them from logging in until they change their status. But I don't
know how to NOT log them in at the end of the registration process.
That is, at the end of the auth_doregister() routine I have two choices:
return false, which will just bring up the registration screen again, and
return a valid $uid, which logs them in. What I REALLY want to do is
redirect them to a thankyou page, that explains that they need to wait for
the e-mail and click the link.
What is the correct way to do this? Can I just use the header("Location:
...") method, or will that cause problems for other parts of PHPLIB? Is
there a mechanism in the library that enables this cleanly?
Thanks!
Michael
--Visit MARS! <http://www.michaelandrochellessite.com/> --- Michael A. Alderete <mailto:alderete <email protected>> voice: (415) 861-5758
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: abdel: "Re: [phplib] mssql problem"
- Previous message: nathan r. hruby: "Re: [phplib] PHP 4.0.4 and template blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

