Bl4dE
Mitglied
PHP:
<body>
<?
$user['gIx'] = "********";
$user['cT'] = "**********";
$usermail['gIx'] = "**.****@*****.**";
$usermail['cT'] = "*****@*****.**";
if(empty($_POST['nick']) or empty($_POST['pw'])){
?>
<form name="form1" method="post" action="<? $PHP_SELF ?>">
<table width="212" height="44" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="80">Name:<br>
Passwort:<br></td>
<td width="132"><input type="text" name="nick">
<input type="password" name="pw"></td>
</tr>
</table>
<input type="submit" name="Submit" value="Submit">
</form>
<?
} else {
if($user[$_POST['nick']] == $_POST['pw']) {
$newsmail = $usermail[$_POST['nick']];
$user = $_POST['nick'];
setcookie("mail",$newsmail, time()+600);
setcookie("user",$inhalt, time()+600);
echo '<meta http-equiv="refresh" content="5; URL=http://web2.mercury-networkz.de/index.php?id=admin">' ;
} else {
echo "Falscher Benutzername oder Falsches PW";
}
}
?>
---------
Fehlermeldung
---------
--------Warning: Cannot modify header information - headers already sent by (output started at /home/www/web1/html/index.php:10) in /home/www/web1/html/log.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web1/html/index.php:10) in /home/www/web1/html/log.php on line 33
hab doch garnix mit header();
drinne Warum bringt er mir dann eine fehlermeldung über header
Zuletzt bearbeitet: