<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Giriş</title>
</head>
<form method="post" name="girisform" id="girisform" action="" >
<input class="m-wrap placeholder-no-fix" type="text" placeholder="Kullanıcı Adı" name="kadi"/>
<br />
<input class="m-wrap placeholder-no-fix" type="password" placeholder="Şifre" name="sifre"/>
<br />
<input type="submit" class="btn green pull-right" name="giris" value="Giriş" />
</form>
<body>
</body>
</html>
<?php
if(@$_POST["giris"]){
$o_kullanici = "AlperJk";
$o_sifre = "123456";
$g_kullanici = trim(@$_POST[kadi]);
$g_sifre = trim(@$_POST[sifre]);
if ($g_kullanici=="" & $g_sifre==""){
echo "<script> alert ('Kullanıcı adı ve şifre alanı boş bırakılamaz') </script>";
}else{
if ($g_kullanici == $o_kullanici & $g_sifre == $o_sifre){
echo "<script> alert ('Başarıyla Giriş Yapıldı') </script>";
}else{
echo "<script> alert ('Kullanıcı adı veya şifre hatalı!!') </script>";
}
}
}
?>