hocam ben html ile login sayfası oluşturdum index.php nasıl gömücem peki?

awoken adlı üyeden alıntı: mesajı görüntüle
settings.php:
<?php
$user = array("username" => "admin", "password" => "test");
?>
index.php:
<?php
session_start();
include("settings.php");
if(isset($_SESSION["login"]) && $_SESSION["login"] == $user["password"]) {
echo "Giriş yapıldı, burası kullanıcı paneli!";
}
else {
?>
<h2>Giriş Yap</h2>
<form action="login.php" method="POST">
<input type="text" name="username" placeholder="Kullanıcı Adı">
<input type="password" name="password" placeholder="Şifre">
<button type="submit">Giriş Yap</button>
</form>
<?php
}
?>
login.php:
<?php
session_start();
include("settings.php");
if(isset($_POST["username"]) && isset($_POST["password"]) && $_POST["username"] == $user["username"] && $_POST["password"] == $user["password"]) {
$_SESSION["login"] = $user["password"];
echo "Giriş Yapıldı!";
}
else {
echo "Giriş Yapılamadı!";
}
?>