Login işlemlerinin php tarafını da paylaşırsanız daha rahat yardım bulabilirsiniz.
/* -------------------------------------- */
/* KULLANICI GİRİŞ */
/* -------------------------------------- */
if (isset($_POST['kullanicigiris'])) {
$ad=htmlspecialchars($_POST['ad']);
$sifre=htmlspecialchars($_POST['sifre']);
if ($ad && $sifre) {
$kullanicisor=$db->prepare("SELECT * FROM kullanici WHERE kullaniciadi=:ad AND sifre=:sifre");
$kullanicisor->execute(array(
'ad'=>$ad,
'sifre'=>$sifre));
$say=$kullanicisor->rowCount();
if ($say>0) {
$_SESSION['ad']=$ad;
header('Location:../index.php');
}else{
header('Location:../giris.php?durum=NO');
}
}
}bu şekilde hocam