Use html form for user input with text field for user name and password
filed for password. Hold password encrypted using MySQL password() function
and check login by "SELECT * FROM users WHERE user='$user' AND
pass=PASSWORD($password)". If (mysql_num_rows($result)) login = true;

Tim
www.chessish.com <http://www.chessish.com> 

        ----------
        From:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
        Sent:  21 January 2002 19:58
        To:  [EMAIL PROTECTED]
        Subject:  [PHP] Nobody know nothing about?      Php login scripts
using PHP4.01, Apache3.01 CGI on W2K


        Atte. Ignacio Estrada F.
        Centro Nacional de Control de Energia
        Area de Control Occidental
        025+6463, 025+6464, 025+6469



                            ignacio.estrada@
                            cfe.gob.mx              Para:
[EMAIL PROTECTED]
                                                    cc:
                            01/21/2002 09:34        Asunto:      [PHP] Php
login scripts using PHP4.01, Apache3.01 CGI on W2K





        Hi, am looking for good samples scripts for authentication, but I am
using
        the CGI version of Apache.   However could be a good way for make
        authentication using some file or database as the source for the
login name
        and so on.

        Please let me know if you know where exists a good samples scripts
for
        that.

        Greetings!!

        Atte. Ignacio Estrada F.
        Centro Nacional de Control de Energia
        Area de Control Occidental
        025+6463, 025+6464, 025+6469


        --
        PHP General Mailing List (http://www.php.net/)
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        To contact the list administrators, e-mail:
[EMAIL PROTECTED]




        

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to