Hi ich hab ein problem.
ich hab eine clanpage gebaut nur der login bug und ich weis net was ich machen soll. ich poste mal das problem.
Code:
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web93/html/index.php:4) in /srv/www/htdocs/web93/html/module/intern/login.php on line 10
hier ist meine login.php
Code:
<?php
$con = mysql_connect($host, $user, $pass);
mysql_select_db($db, $con);
if(isset($_GET['action']) AND "login" == $_GET['action']){
$sql = "select * from user where user = '".$_POST['username']."' limit 1;";
$query = mysql_query($sql);
if(mysql_num_rows($query)){
while($row = mysql_fetch_assoc($query)){
if($row['user'] == $_POST['username'] AND $row['pass'] == md5($_POST['userpass'])){
setcookie("agtLogin",$row['user'],time()+(60*60*7));
print('Login O.K.!<br>Bitte aktualisieren<br>');
}else{
print('Login falsch!<br>Bitte erneut <a href="index.php">einloggen</a>');
}
}
}else{
print('Login falsch!<br>Bitte erneut <a href="index.php">einloggen</a>');
}
}else{
?>
<form action="index.php?action=login" method="post" class="registerForm">
<br>
<input type="text" name="username" size="20" style="background-image:url(Bilder/input1.jpg) "><br>
<br>
<input type="password" name="userpass" size="20" style="background-image:url(Bilder/input2.jpg) "><br>
<input type="submit" name="submit" value=":. login">
</form>
<?php
}
?>
hier ist die hp
web93.server2.dce4u.de
test logindaten: help help
ich hoffe ihr könnt mir helfen.
MFG
System
aso ähh safemode = on