2008-01-16, 03:09 PM
Hello there
I want to make a login form in my website that uses the same users table (in the DB) in my MyBB forum.
I mean that I want to give to the users the option to log in into their account from the site, with the same username and password.
And now is the question:
The encoding for the password, what should it be?
something like that:
Thanks
I want to make a login form in my website that uses the same users table (in the DB) in my MyBB forum.
I mean that I want to give to the users the option to log in into their account from the site, with the same username and password.
And now is the question:
The encoding for the password, what should it be?
something like that:
<?php
$password = md5($_POST['password']); // OR OTHER ENCODING
if($password == $user['password'])
.....
?>
Pay attention to the md5 encoding in the PHP Code above.Thanks