dies ist die fehlermeldung:
Warning: Cannot send session cookie - headers already sent by (output started at /home/steve/public_html/Projet/login.php:2) in /home/steve/public_html/Projet/login.php on line 22
hier der php code
bitte helft mir
Warning: Cannot send session cookie - headers already sent by (output started at /home/steve/public_html/Projet/login.php:2) in /home/steve/public_html/Projet/login.php on line 22
hier der php code
Code:
<? $standarduser = "steve"; $standardpass = "ltesch1"; if (isset($_POST['hidden'])) { $message = "1"; $username = $_POST['txtusername']; $password = $_POST['txtpasswd']; $_SESSION['accepted'] = 0; if (($username==$standarduser) AND ($password==$standardpass) AND (isset($_POST['hidden']))) { session_start(); $_SESSION['txtusername'] = $username; $_SESSION['txtpasswd'] = $password; $_SESSION['zeit'] = time(); $message = "false"; $_SESSION['accepted'] = 1; header("location:formular.php"); } else { $message = "Wrong username / password entered"; }; }; ?>
Kommentar