[EMAIL PROTECTED] (Hawk) wrote in
[EMAIL PROTECTED]:
Hi Hawk,
Here is a snippet of what I use:
if (isset( $txtUsername )) {
$sql = Select a.* from admins a where ;
$sql .= adm_name = '$txtUsername' ;
$sql .= and adm_pwd = PASSWORD('$txtPassword');
$resultID = mysql_query( $sql )
If you are going to us encrypted passwords, then it goes something more
like this:
- user fills out form picking a login and a password.
- php encrypts the password using say md5 and puts the encrypted form into
the database.
- user tries to login typing in their login and password.
- php
2 matches
Mail list logo