Re: [Linux-programlama] session_path

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: onuRRR (cversuscobol@gmail.com)
Date: Mon 12 Feb 2007 - 15:25:03 EET


hocam herhangi bir "echo" yok kodu olduu gibi gönderiyorum, belki baska bir
hatadan kaynaklanıyordur..

<!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>giris</title>
</head>
<body>
<?php
session_start();
$conn = mysql_connect("localhost", "root");
if (!$conn){
echo "veritabanina ulasilamadi,kullaniciadi,sifre yada localhost bilgisi
yanlis olabilir: " . mysql_error();
exit;
}
if (!mysql_select_db("onurdyhdb")){
echo "Veritabani adi dogru degil, yada yok: " . mysql_error();
exit;
}

if($_POST['durum'] == 'giris'){

$kullaniciadi=htmlentities(mysql_real_escape_string($_POST['kullaniciadi']));
$sifre = mysql_real_escape_string(md5($_POST['sifre']));
echo "$kullaniciadi";
echo "$sifre";
$kontrol=mysql_query("SELECT kullaniciadi,sifre,onay FROM uyeler WHERE
kullaniciadi='".$kullaniciadi."' and sifre='".$sifre."'");
if (mysql_num_rows($kontrol) < 1){
header("Location: form.html");
}else{
$kontrolet=mysql_fetch_array($kontrol);
if($kontrolet['onay'] == "0"){
echo "Hesabinizi aktive etmek için Eposta adresinize gönderilen adresi
tiklayarak giris yapmaniz gerekir";
exit;
}else{
$_SESSION['kullaniciadi'] = $kontrolet['kullaniciadi'];
$_SESSION['uye'] = 'uyemiz';
header("Location: hesap.php");
}
}

}else{
header("Location: form.html");
}

mysql_close($conn);
?>
</body>
</html>

>
> -- Dyhonur

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.