Good day I do not seem to be winning with password verify if anyone could help me, please. thank you.
my registration script looks like this
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
echo $e->getMessage();
}
global $bcrypt;
$ip = $_SERVER['REMOTE_ADDR'];
if(isset($_POST['register']))
{
$password = $_POST['password'];
$name= $_POST['name'];
$surname = $_POST['surname'];
$ID = $_POST['ID'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$name1 = $_POST['name1'];
$surname1 = $_POST['surname1'];
$phone1 = $_POST['phone1'];
$email1 = $_POST['email1'];
$relationship = $_POST['relationship'];
$password =password_hash($_POST['password'], PASSWORD_DEFAULT);
try{
$query = "INSERT INTO visitors(password,name,surname,ID,phone,email,name1,surname1,phone1,email1, relationship)
VALUES(:fn, :ln, :em, :con, :ph, :ag, :pr, :na, :ge, :ci, :th)";
$stmt = $conn->prepare($query);
$stmt->bindparam(":fn",$password);
$stmt->bindparam(":ln",$name);
$stmt->bindparam(":em",$surname);
$stmt->bindparam(":con",$ID);
$stmt->bindparam(":ph",$phone);
$stmt->bindparam(":ag",$email);
$stmt->bindparam(":pr",$name1);
$stmt->bindparam(":na",$surname1);
$stmt->bindparam(":ge",$phone1);
$stmt->bindparam(":ci",$email1);
$stmt->bindparam(":th",$relationship);
$stmt->execute();
header('location:learnerlogin.php');
}
catch(PDOException $e){
echo $e->getMessage();