arkadaşlar aşşağıdaki dosyalarda bi eksikmi var ben çözemedim ama giriş dosyasından direk günsonuna geçmesi lazım fakat yönlendirme gerçekleşmiyor anlayan arkadaşların yardımına ihtiyacım var
<?
$kadi = "kontrol";
$kpass = "123456";
if (($kadi == $_POST[username]) && ($kpass == $_POST[password])) {
$_SESSION[giris] = ok;
session_register();
}
if($_SESSION[giris] == ok) { header("Location:gunsonu.php"); exit(); }
else {
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<META NAME="Author" CONTENT=" IT">
<META NAME="Generator" CONTENT=" IT Department">
<title> CRM v1.0 - Kullanıcı Girişi</title>
</head>
<body valing="middle" background="" bgcolor="#b99261">
<br><br>
<TABLE aling="center" background="images\giriss.jpg" bgcolor="white" border="0" height="269" width="100%" CELLSPACING=0 CELLPADDING=0>
<tr><td aling="center">
<center><img src="images\girisorta.jpg"></center>
</td></tr>
</table>
<form action="index.php" method="POST">
<center>
<TABLE bgcolor="#b99261" border="0" width="300" CELLSPACING=4 CELLPADDING=1>
<tr><td style="FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: verdana; TEXT-DECORATION: none" align="right">
Kullanıcı Adı:</td> <td><input type="text" name="username" style="font-family: Arial; font-size: 12; BACKGROUND-color: #EFEFFF; border:1px solid; color: #000000">
</td></tr>
<tr><td style="FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: verdana; TEXT-DECORATION: none" align="right">
Şifre:</td><td> <input type="password" name="password" style="font-family: Arial; font-size: 12; BACKGROUND-color: #EFEFFF; border:1px solid; color: #000000">
</td></tr>
<tr><td colspan="2" align="right">
<input type="submit" value="Giriş Yap">
</td></tr>
</table>
</center>
</form>
<br><br><br><br><br><br><br>
<table bgcolor="#2a1800" border="0" height="20" width="100%">
<tr><td aling="center" style="FONT-WEIGHT: bold; FONT-SIZE: 9px; COLOR:#ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none">
<center>
Copyright © 2011
</center>
</td></tr>
</table>
</body>
</html>
<?
}
?>yönleneceği dosya <!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-9" />
<META NAME="Author" CONTENT=" BT">
<META NAME="Generator" CONTENT=" IT Department">
<title> CRM v1.0</title>
</head>
<body valing="top" background="" leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr valing="top">
<td align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valing="top">
<td align="left">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="170" height="136" align="left"><img width="170" src="images/solban.gif"></td><td align="right" style="FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none" background="images/ortaustban.gif"><br><br><br><br><br><br><br><?php $gunler=array("Pazar ","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"); $tarih=date("d").".".date("m").".".date("Y")." - ".$gunler[date("w")]; echo $tarih;?> </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td align="left">
<table valing="top" width="100%" border="0" align="center" cellpadding="0" cellspacing="0" topmargin="0">
<tr valing="top">
<td width="169" height="650" align="left" bgcolor="#2b1901">
<table cellpadding="0" cellspacing="0" topmargin="0" width="168" height="34"><tr valing="top"><td><img width="168" height="34" src="images/top.jpg"></td></tr><tr height="616"><td> </td></tr></table>
</td>
<td bgcolor="white" height="650"><iframe frameborder="0" height="600" width="700" scrolling="no" src="email.htm"></iframe><br></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>