admin.php dosyası

<?php 


if (isset($Submit)) {
$editor_id=$_POST['editor_id'];
$editor_sifre=$_POST['editor_sifre'];
}
$sayac=0;
$hata=0;
$sql2 = mysql_query("SELECT * FROM yoneticiler",$baglan) or die ("Sorgu Hatası...");
while ($yaz2 = mysql_fetch_assoc($sql2)) {
$sayac=$sayac+1;
if (($editor_id==$yaz2['kullaniciadi']) and ($editor_sifre==$yaz2['sifre'])) {
echo "<br><center><a href=index.php?islem=admin&kontrol=cikis><font size='5'>&Ccedil;ıkış</font></a></center>";
if ($kontrol=="cikis") { 
$editor_id=""; $editor_sifre=="";
echo "<center>Basariyla Çikis Yaptiniz...<br>Yönlendiriliyorsunuz...	<meta http-equiv='refresh' content='5;url=index.php?islem=admin'>


</center> ";
}
include("yonetim.php");


session_register('editor_id','editor_sifre');

} else 
$hata=$hata+1;
}
if ($hata==$sayac) {
echo "<form action='index.php?islem=admin' method='post'>
  <fieldset class='fieldset2'><legend>Yönetici Girisi</legend>
    <table width='253' border='0' align='left'>
      <tr>
        <td width='90'><div align='right'>Kullanıcı Adi:</div></td>
        <td width='153'><div align='left'>
          <label>
          <input type='text' name='editor_id' />
          </label>
        </div></td>
      </tr>
      <tr>
        <td><div align='right'>Şifre</div></td>
        <td><div align='left'>
          <input type='password' name='editor_sifre' />
        </div></td>
      </tr>
      <tr>
        <td><div align='right'></div></td>
        <td><div align='left'>
          <label>
          <input type='submit' name='Submit' value='Giriş' />
          </label>
        </div></td>
      </tr>
    </table>
    <label></label>
</fieldset>
</form>";
}

	  ?>
yonetim.php dosyası


<style type="text/css">
<!--
.style1 {font-size: 20px}
-->
</style>
<table width="444" height="605" border="0" align="center">
  <tr>
    <td colspan="3"><div align="center">
      <h1><a href="index.php?islem=admin">Sınav Sitesi Y&ouml;netim Paneli </a></h1>
    </div></td>
  </tr>
  <tr>
    <td height="37" colspan="3"><div align="center" class="style1">Soru Y&ouml;netimi </div></td>
  </tr>
  <tr>
    <td width="142"><div align="center"><img src="images/icons/soru_ekle.png" width="64" height="64" /><br />
        <a href="index.php?islem=admin&amp;yonetim=soruekle">Soru Ekle </a></div></td>
    <td width="130"><div align="center"><img src="images/icons/soru_duzenle.png" width="64" height="64" /><br />
        <a href="#">Soru D&uuml;zenle </a></div></td>
    <td width="150"><div align="center"><img src="images/icons/soru_sil.png" width="64" height="64" /><br />
        <a href="#">Soru Sil </a></div></td>
  </tr>
  <tr>
    <td height="37" colspan="3"><div align="center" class="style1">&Uuml;ye Y&ouml;netimi </div>      <div align="center"></div>      <div align="center"></div></td>
  </tr>
  <tr>
    <td><div align="center"><img src="images/icons/uye_ekle.png" width="64" height="64" /><br />
        <a href="index.php?islem=admin&amp;yonetim=uyeekle">&Uuml;ye Ekle </a></div></td>
    <td><div align="center"><img src="images/icons/uye_duzenle.png" width="64" height="64" /><br />
      <a href="index.php?islem=admin&amp;yonetim=uyeduzenle">&Uuml;ye D&uuml;zenle </a></div></td>
    <td><div align="center"><img src="images/icons/uye_sil.png" width="64" height="64" /><br />
      <a href="index.php?islem=admin&amp;yonetim=uyesil">&Uuml;ye Sil </a></div></td>
  </tr>
  <tr>
    <td height="37" colspan="3"><div align="center" class="style1">Ders Y&ouml;netimi </div></td>
  </tr>
  <tr>
    <td><div align="center"><img src="images/icons/ders_ekle.png" width="64" height="64" /><br />
      <a href="index.php?islem=admin&amp;yonetim=dersekle">Ders Ekle </a></div></td>
    <td><div align="center"><img src="images/icons/ders_duzenle.png" width="64" height="64" /><br />
      <a href="#">Ders D&uuml;zenle </a></div></td>
    <td><div align="center"><img src="images/icons/ders_sil.png" width="64" height="64" /><br />
      <a href="#">Ders Sil </a></div></td>
  </tr>
  <tr>
    <td height="37" colspan="3"><div align="center" class="style1">Edit&ouml;r Y&ouml;netimi </div></td>
  </tr>
  <tr>
    <td height="85"><div align="center"><img src="images/icons/editor_ekle.png" width="64" height="64" /><br />
    <a href="index.php?islem=admin&amp;yonetim=editorekle">Edit&ouml;r Ekle </a></div></td>
    <td><div align="center"><img src="images/icons/editor_duzenle.png" width="64" height="64" /><br />
      <a href="#">Edit&ouml;r D&uuml;zenle </a></div></td>
    <td><div align="center"><img src="images/icons/editor_sil.png" width="64" height="64" /><br />
      <a href="index.php?islem=admin&amp;yonetim=editorsil">Edit&ouml;r Sil </a></div></td>
  </tr>
  <tr>
    <td height="35" colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><div align="center"></div></td>
  </tr>
</table>
<div align="center">
  <?php 
	if ($yonetim=="soruekle") { include("admin/includes/soru_gonder.php"); }
	elseif ($yonetim=="uyeekle") { include("admin/includes/uyeol.php"); }
	elseif ($yonetim=="dersekle") { include("admin/includes/ders_ekle.php"); }
	elseif ($yonetim=="editorekle") { include("admin/includes/editor_ekle.php"); }
	elseif ($yonetim=="uyeduzenle") { include("admin/includes/uye_duzenle.php"); }
	elseif ($yonetim=="uyesil") { include("admin/includes/uye_sil.php"); }
	elseif ($yonetim=="editorsil") { include("admin/includes/editor_sil.php"); }
	?>
</div>
index.php sessionlar


<?php 
session_start();
$kullanici_adi = $_SESSION[kullanici_adi];
$sifre = $_SESSION[sifre];
$editor_id = $_SESSION[editor_id];
$editor_sifre = $_SESSION[editor_sifre];
?>

soruekle.php dosyası

<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form action="index.php?islem=admin&yonetim=soruekle" method="post" enctype="multipart/form-data" name="soru_ekle" id="soru_ekle">
  <div align="center">
    <table width="447" border="0" align="center" cellpadding="3" cellspacing="2">
      <tr>
        <td colspan="2"><div align="center">
          <h3>Sınav Sitesi Soru G&ouml;nder </h3>
        </div></td>
      </tr>
      <tr>
        <td><div align="right">Hangi Ders? </div></td>
        <td><div align="left">
          <label>
            <select name="ders">
          <option>Ders Se&ccedil;iniz</option>
          <option value="bilgisayar">Bilgisayar</option>
          <option value="biyoloji">Biyoloji</option>
          <option value="cografya">Coğrafya</option>
          <option value="fizik">Fizik</option>
          <option value="geometri">Geometri</option>
          <option value="ingilizce">İngilizce</option>
          <option value="kimya">Kimya</option>
          <option value="matematik">Matematik</option>
          <option value="tarih">Tarih</option>
          <option value="turkce">T&uuml;rk&ccedil;e</option>
            </select>
            </label>
        </div></td>
      </tr>
      <tr>
        <td width="100"><div align="right">Soru:</div></td>
        <td width="329"><div align="left">
          <label>
            <textarea name="soru" cols="38" rows="5" id="soru"></textarea>
            </label>
        </div></td>
      </tr>
      
      <tr>
        <td><div align="right">Soru Resmi:</div></td>
        <td><label>
          <div align="left">
            <input type="file" name="resim" id="resim" />          
            </label>
        </div></td>
      </tr>
      <tr>
        <td><div align="right">A Şıkkı: </div></td>
        <td><div align="left">
          <input name="a" type="text" id="a" size="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right">B Şıkkı: </div></td>
        <td><div align="left">
          <input name="b" type="text" id="b" size="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right">C Şıkkı: </div></td>
        <td><div align="left">
          <input name="c" type="text" id="c" size="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right">D  Şıkkı: </div></td>
        <td><div align="left">
          <input name="d" type="text" id="d" size="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right">E Şıkkı: </div></td>
        <td><div align="left">
          <input name="e" type="text" id="e" size="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right">Doğru Cevap: </div></td>
        <td><div align="left">
          <label>
          <select name="dogru" id="dogru">
            <option>Doğru Şık</option>
            <option value="a">A</option>
            <option value="b">B</option>
            <option value="c">C</option>
            <option value="d">D</option>
            <option value="e">E</option>
          </select>
          </label>
        </div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
        <td><div align="left">
          <label>
            <input type="submit" name="Submit" value="G&ouml;nder" />
            </label>
        </div></td>
      </tr>
    </table>
    <?php 

if (isset($Submit)) {
$yol="images/soru_resimleri";

 if ($resim_type == "image/gif" || $resim_type == "image/pjpeg" || $resim_type == "image/png" || $resim_type == "image/jpeg") {
   copy($resim,"$yol/$resim_name") or die ("Dosya Kopyalanamadi");
$soru_resmi = "$yol/$resim_name";
   } else {
   echo "Lütfen Resim Dosyasi Seçiniz...";
   }
   
$ders = $_POST['ders'];
$soru = $_POST['soru'];
$a = $_POST['a'];
$b = $_POST['b'];
$c = $_POST['c'];
$d = $_POST['d'];
$e = $_POST['e'];
$dogru_cevap = $_POST['dogru'];
}
?>
  </div>
</form>
</body>
</html>


şimdi benim sorunum yonetim php de soru gonder tıklanınca include ediliyo soru gonder.php sorugonder.php dosyasındaki form gönder dendigi anda yonetici logout oluyor