the best way to do password validation is using one way encryption (e.g.
MySQL PASSWORD() function). That way you check the encrypted user entered
password against the database ...
" ... WHERE pass = PASSWORD('{$_POST["password"]}')"
Tim Ward
www.chessish.com
> -----Original Message-----
> From: Mr. BuNgL3 [mailto:mrbungle@;netcabo.pt]
> Sent: 27 October 2002 10:51
> To: [EMAIL PROTECTED]
> Subject: newbie: php/mysql
>
>
> Hey...
> I have a little problem... i want to read an encrypted field
> from mysql
> database to a php variable... what is the code line that i
> must enter? (ex:
> password validation in a login form)
> Thanks...
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php