@Zendorx;
<?php
/*
Bu sadece bir örnektir. "session" vb. şeyleri kullanmadım.
<form method="POST">
<input type="password" name="password" placeholder="Şifreniz">
<button type="submit">Giriş yap</button>
</form>
*/
$password = file_exists(__DIR__ . '/sifre.txt') ? file_get_contents(__DIR__ . '/sifre.txt') : 'sifre.txt yok buraya varsayılan şifreyi yaz';
if(isset($_POST) && isset($_POST['password']))
{
if($_POST['password'] == $password)
{
echo 'başarıyla giriş yaptın.';
}
else
{
echo 'şifre yanlış';
}
}