I have to make a register form for users.. they have a DB called Deparment, within table name users.. DB Deparment holds varius columns, including "mail" "password", they use ftp acounts, and mail acounts to read from users table of Deparment DB.
They created user's direct into MySQL using:
INSERT INTO `users` (`email`, `password`) VALUES ('[email protected]', ENCRYPT('UserPassHere')); Until there everything works... "[email protected]" with his password >> "UserPassHere".. can log into mail and ftp, with the same pass and username.
I'm trying to created that login form but not luck.. here is what i have been tryed in form_validator.php :
INSERT INTO users (email, password) VALUES ('$_POST[email]', '".ENCRYPT($_POST['password']))"; INSERT INTO users (email, password) VALUES ('$_POST[email]', '".MYSQLENCRYPT($_POST['password']))"; if I use md5 or crypt, data get inset into DB but MAIL and FTP can read the password..
I have not idea how to make password match their ENCRYPT deal..?