if (isset($_POST["loginol"])) {
$email =$_POST["mail"];
$pass =$_POST["pass"];
$kullanicivarmi= $vt->prepare("select * from uyeler where email=? && pass=?");
$kullanicivarmi->execute(array($email,$pass));
$row= $kullanicivarmi->rowCount();
if ($row>0) {
$login = intval($_POST['login']);
if($login ==1){
setcookie("kadi",$email,time()+3600*1);
setcookie("ksifre",$pass,time()+3600*1);
}
$_SESSION["mail"]=$email;
$_SESSION["pass"]=$pass;
echo'Bilgileriniz doğru';
}else{
echo'Bilgiler yanlış';
}
} <form class="forms-sample" action="" method="post">
<input type="text" name="mail">
<input type="password" name="pass">
Beni Hatırla <input type="checkbox" value="1" name="login">
<input type="submit" name="loginol" value="Giriş">
</form>