tom-tom

Nov 20th, 2016 08:13 AM

Hi,

I am unable to register a user on the register.php. I'm getting this error:

Notice: Only variables should be passed by reference in F:\wamp64\www\login\register.php on line 14

This is my line 14:

$stmt->bindParam(':password', password_hash($_POST['password'], PASSWORD_BCRYPT));
mark

Nov 27th, 2016 11:34 AM

Try change it to this

$password = password_hash($_POST['password'], PASSWORD_BCRYPT);
$stmt->bindParam(':password', $password);