Hi! Ich wollte fragen, wo der Fehler liegt:
Wenn die richtigen Passwörter eingegeben werden dann kommt das:
PHP:
<html>
<head>
<title>7b</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<?php
$passwort = "Passw1";
$gast = "Passw2";
$admin = "Passw3";
if ($_POST['pw'] == $passwort) {
header ("Location: 7b/index.php");
}
elseif ($_POST['pw'] == $gast) {
header ("Location: gast/index.htm");
}
elseif ($_POST['pw'] == $admin) {
header ("location: development/index.php");
}
else {
echo "<div id='main'><h1>Falsches Kennwort</h1>
<p>Falsches Kennwort. Wenn Sie Gast sind, nehmen Sie das Kennwort Gast.</p>
</div>";
}
?>
</body>
</html>
Warning: Cannot modify header information - headers already sent by (output started at /users/mkportal/www/verarbeitung.php:7) in /users/mkportal/www/verarbeitung.php on line 18