<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...