• 23-09-2007, 19:01:28
    #1
    Eposta Aktivasyonu Gerekmekte
    login.php:
    <form action="login1.php" method="post"><table width="333" height="46" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="162" height="26">k adı</td>
        <td width="171"><input name="username" type="text"></td>
      </tr>
      <tr>
        <td height="20">şifre</td>
        <td><input name="sifre" type="text"></td>
      </tr>
        <tr>
        <td height="20">hatırla</td>
        <td><input name="hatirla" type="radio" value="1"></td>
      </tr>
      <tr>
        <td height="20"></td>
        <td>
          <input type="submit" value="gonder"></td>
      </tr>
    </table>
    </form>

    Login1.php
    <? include 'ayarlar.php'; ?>
    <? $done= $_POST['done']; ?><?
    if ($done=1) {
    $username= $_POST['username'];
    $sifre= md5($_POST['sifre']);
    $hatirla= $_POST['hatirla'];
    $sql = mysql_query("SELECT * FROM uyeler WHERE username='$username' AND sifre='$sifre'");
    $f= mysql_fetch_array($sql);
    $username2=$f[username];
    $id=$f[id];
      if ($id){
      if($hatirla=1){
       setcookie("username", $username2, time()+60*60*24*100);
       setcookie("id", $id, time()+60*60*24*100);
        }
        else {
       setcookie("username", $username2);
       setcookie("id", $id); }
    }
    echo '$username Giriş başarılı';
    }
    else {
    echo "başarısızzzzzz";
    }
    ?>



    verdiği hata...
    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/icerik/login1.php:7) in /home/xxxx/public_html/icerik/login1.php on line 19

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/icerik/login1.php:7) in /home/xxxx/public_html/icerik/login1.php on line 20


    yardım eden(ler)den allah razı olsun...
  • 23-09-2007, 20:20:12
    #2
    ayarlar.php 'nin üzerinde boşluk kalmış olabilir

    <?php
  • 23-09-2007, 20:22:36
    #3
    Eposta Aktivasyonu Gerekmekte
    ErsaT adlı üyeden alıntı: mesajı görüntüle
    ayarlar.php 'nin üzerinde boşluk kalmış olabilir

    <?php

    ilgin için saol ama ayarlar.php de bir sorun yok
  • 23-09-2007, 20:27:56
    #4
    BitterSweet adlı üyeden alıntı: mesajı görüntüle
    ilgin için saol ama ayarlar.php de bir sorun yok
    <?php
    ob_start();
    include 'ayarlar.php'; ?>
    <? $done= $_POST['done']; ?><?
    if ($done=1) {
    $username= $_POST['username'];
    $sifre= md5($_POST['sifre']);
    $hatirla= $_POST['hatirla'];
    $sql = mysql_query("SELECT * FROM uyeler WHERE username='$username' AND sifre='$sifre'");
    $f= mysql_fetch_array($sql);
    $username2=$f[username];
    $id=$f[id];
      if ($id){
      if($hatirla=1){
       setcookie("username", $username2, time()+60*60*24*100);
       setcookie("id", $id, time()+60*60*24*100);
        }
        else {
       setcookie("username", $username2);
       setcookie("id", $id); }
    }
    echo '$username Giriş başarılı';
    }
    else {
    echo "başarısızzzzzz";
    }
    ob_end_flush();
    ?>
    Böyle denermisin.
  • 23-09-2007, 20:32:36
    #5
    Eposta Aktivasyonu Gerekmekte
    yine olmadı
  • 23-09-2007, 20:44:42
    #6
    Üyeliği durduruldu
    <? include 'ayarlar.php'; ?>
    değiştir
    <? include_once("ayarlar.php"); ?>
    Ekstradan ayarlar.php'de header varsa hangi satırda onu göster header() dan önce ekrana bir output parametresi gönderiyorsun anlaşılan.