<!doctype html>
<html>
<head>
<title>test</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<header class="main_head">
</header>
</div>
</div>
</div>
</body>
</html>
include_once 'connectDB.php';
if (isset($_POST['entry'])) {
$login = $_POST['login'];
$sql = $pdo->prepare("SELECT login, password FROM dataname WHERE login=?");
$sql->execute([$login]);
$data = $sql->fetch();
if (password_verify($_POST['password'], $data['password'])) {
echo 'YES';
}
else {
echo 'NO';
}
}