Merhaba ,
Son günlerde çok yardım istemeye başladım , ama scriptimin bitmesine az bir şey kaldı.Yakında benim için soru cevap bölümü açacaklar.Sırf bneim konularımı koysalar bölüm dolar :tili Yardım eden arkadaşlara , yılmadan usanmadan ettikleri yardımlardan ötürü çok teşekkürlerimi sunuyorum.Gerçekten çok hayırlı bir iş yapıyorlar.Şimdi konuya geçeyim ,
Bir üye giriş sistemi yapıyorum.Herzamanki gibi takıldım
D Bana doğru gibi geliyor ama ne yapalım işte.Buyrun kodlar kanlı canlı :
giris.php :
cp.php :
Kodların tamamını attım ki , session startları tam çözemedim.Şimdiden çok çok teşekkür ederim.
Son günlerde çok yardım istemeye başladım , ama scriptimin bitmesine az bir şey kaldı.Yakında benim için soru cevap bölümü açacaklar.Sırf bneim konularımı koysalar bölüm dolar :tili Yardım eden arkadaşlara , yılmadan usanmadan ettikleri yardımlardan ötürü çok teşekkürlerimi sunuyorum.Gerçekten çok hayırlı bir iş yapıyorlar.Şimdi konuya geçeyim ,
Bir üye giriş sistemi yapıyorum.Herzamanki gibi takıldım
giris.php :
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?
include('bolum/ayar.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo $title ; ?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
#sidebar1 { width: 250px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
#sidebar1 { padding-top: 30px; }
#mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>
<body>
<!-- begin #container -->
<div id="container">
<!-- begin #header -->
<div id="header">
<div>
<div class="logo">
<?php //echo $baslik ; ?>
</div>
<div class="search"><input type="button" value="" class="buttonSearch" /><input type="text" name="" id="datepicker" class="searcharea" /></div>
</div>
<div id="navcontainer">
<? include("bolum/menu.php"); ?>
</div>
<div><img src="images/headerPic.jpg" alt="" /></div>
</div>
<!-- end #header -->
<!-- begin #sidebar1 -->
<h1><span class="highlight">Giriş yap</span> </h1>
<table>
<form action="giris.php" method="post" ><table><tr> <td align="left"><h1 class="highlight"> </h1></td></tr>
<tr><td>İd :</td><td><input type="text" name="kadi" size="25"></td></tr>
<tr><td>Şifre :</td><td><input type="text" name="sifre" size="25"></td></tr>
</td></tr><tr><td></td><td>
<input type="submit" name="gonder" value="Gönder"></td></tr></table></form>
<?php
if(isset($_POST['gonder'])){
include('bolum/ayar.php');
$kullanici=$_POST['kadi'];
$sifre=$_POST['sifre'];
$msifre=md5($sifre);
if((isset($kullanici)) && (isset($msifre))){
$sor=mysql_query("select * from data where kadi='$kullanici' and sifre='$msifre'");
if(mysql_num_rows($sor)>0){
$arr=mysql_fetch_array($sor);
$durum=true;
$kadi=$arr['kadi'];
$sifre=$arr['sifre'];
echo $kadi ;
echo $sifre ;
session_start();
$_SESSION['durum'] = $durum;
$_SESSION['kadi'] = $kadi;
$_SESSION['sifre'] = $sifre;
echo "<meta http-equiv='refresh' content='2;URL=cp.php'>";
}else{echo 'asdads';}
}else{echo 'alanlar boş olamaz';}
}
else
{
echo '';
}
?>
</table>
</div>
<? include("bolum/footer.php"); ?>
<!-- end #footer -->
</body>
</html>
cp.php :
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?
session_start();
$giris = $_SESSION["durum"];
$giris = $_SESSION["giris"];
$ad = $_SESSION["kadi"];
$sifre = $_SESSION["sifre"];
include ("bolum/ayar.php");
if(isset($giris)){
echo "Geri dönüp giriş yapınız.
".$bilgi."";
}
else{
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Free Css Template 185 - Youth Travel</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
#sidebar1 { width: 250px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
#sidebar1 { padding-top: 30px; }
#mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>
<body>
<!-- begin #container -->
<div id="container">
<!-- begin #header -->
<div id="header">
<div>
<div class="logo">
<?php //echo $baslik ; ?>
</div>
<div class="search"><input type="button" value="" class="buttonSearch" /><input type="text" name="" id="datepicker" class="searcharea" /></div>
</div>
<div id="navcontainer">
<? include("bolum/menu.php"); ?>
</div>
<div><img src="images/headerPic.jpg" alt="" /></div>
<?
echo "id : $ad" ;
echo "sf : $sifre" ;
?>
<form action='banneronay.php'>
<input type='textbox' width='300'></input>
<input type='submit' value='GONDER'></input>
</form>
</div>
<!-- end #header -->
<!-- begin #sidebar1 -->
</div>
<? include("bolum/footer.php"); ?>
<!-- end #footer -->
</body>
</html>
<? } ?>
Kodların tamamını attım ki , session startları tam çözemedim.Şimdiden çok çok teşekkür ederim.