Re: How can i make it so....
| From: | Richard Lynch | Date: | Wed, 01 Aug 2001 09:46:39 +0000 |
| Subject: | Re: How can i make it so.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60613@lists.php.net to get a copy of this message | ||
>Once the user has inserted the UN, and PW, it is campared against the MySQL
database, nowm >what i want to do is get rid of the login form which still
appears, and is very annoying. I >can't seem to see anything on this
particular subject, but if their is any, can u point me in >the right
direction.
Re-arrange your code so you *CHECK* their username/password *before* you
start showing the FORM.
If they've entered username/password, and it's valid, don't show the form,
do something else.
Also, the variables $PHP_AUTH_USER and PHP_AUTH_PW are going to be set by
the browser as part of HTTP Authentication, even though you're not using
HTTP Authentication, so you can't use those variables with your form. Pick
different variable names.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm