<!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>Başlıksız Belge</title>
<style type="text/css">
table{ margin:50px auto}
.genel{border:1px solid #d3d3d3; width:350px; height:350px; margin:180px auto; background:#36648b; border-radius:5px}
.baslik{
	font:12px Arial, Tahoma, Verdana;
	width:300px;
	height:10px;
background:#F63;  
color:#fff; 
padding:10px;
font-weight:bold;
margin:20px auto;
text-align:center; border-radius:2px}
.panel{ width:300px; height:auto; margin:0px auto;
font:bold 13px Arial, Tahoma, Verdana; color:#fff}
input { height:30px; background:#36648b; border:1px solid #CCC; margin:0 0 0 50px; width:150px}
#buton{ width:100px; height:20px; background:#F63; margin:0 0 0 110px; color:#fff}
.resim{ width:300px; height:auto; margin:15px auto;}
td{ font:bold 12px Tahoma, Geneva, sans-serif; color:#fff}

</style>
</head>

<body>
<div class="genel">
<form action="ikayit.php" method="post">
<table width="300" border="0" cellpadding="0" cellspacing="0">
<div class="resim"><img src="indir.png" width="300" /></div> 
  <tr>
    <td width="161" height="40">&nbsp;&nbsp;Ad Soyad</td>
    <td width="198">&nbsp;&nbsp;<input name="ad" type="text"  /></td>
  </tr>
  <tr>
    <td height="40">&nbsp;&nbsp;Kullanıcı Adı</td>
    <td>&nbsp;&nbsp;<input name="kadi" type="text"  pattern="[0-9]{11}" /></td>
  </tr>
  <tr>
    <td height="42">&nbsp;&nbsp;Sifre</td>
    <td>&nbsp;&nbsp;<input name="sifre" type="text" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Kaydet" name="kaydet" id="buton" /></td>
  </tr>

</table>

</form>

<br /><a href=javascript:history.back(-1)>Geri Dön</a>

</div>
<?php
/*error_reporting(0);
$baglan=@mysql_connect("localhost","root","");
if(!$baglan) die("mySQL bağlantı Hatası");
mysql_select_db("panel",$baglan) or die("Veritabanı bağlantı hatası");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8_general_ci");*/
include ("baglan.php");
if(isset($_POST['kaydet'])){
  
            $ad=$_POST['ad'];
            $sifre=$_POST['sifre'];
            $kadi=$_POST['kadi'];
            $sql = "INSERT INTO idare (kadi,sifre,ad) 
                                                VALUES('$kadi', '$sifre','$ad')";
            if($baglan->query($sql) == TRUE){
                echo "Kayıt eklendi...";
            } else {
                echo $baglanti->error;
            }
          }
        $mysqli->close();
    ?>
</body>
</html>