Re: authentication comparing to /etc/passwd
| From: | John Taylor-Johnston | Date: | Wed, 04 Feb 2004 05:08:18 +0000 |
| Subject: | Re: authentication comparing to /etc/passwd | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176754@lists.php.net to get a copy of this message | ||
if($PHP_AUTH_USER != "user1") || ($PHP_AUTH_PW != "password")
... or somehting like that. I can't find it in the manual, but it is there someplace.
Adam Williams wrote:
> Hi, is there a PHP function or some sort of way to have a user enter their
> username and password in a form, and compare the username and password and
> see if the username exists and the password is correct?
>
> basically I want to have a page where a person enters their username and
> password and if correct to use the header function to send them to the a
> page.
--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not Open Source, it's Murphy's Law or broken."
' ' ' Collège de Sherbrooke
ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
- Université de Sherbrooke
http://compcanlit.ca/
819-569-2064