ich habe grade dieses Tutorial gefunden und direkt mal ausprobiert.
Allerdings bekomme ich folgende Fehlermeldung:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/www/web150/html/rightframe.php:6) in /home/www/web150/html/rightframe.php on line 17
Mein Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Unbenanntes Dokument</title>
<style type="text/css">
a:link { color: #000000; text-decoration:none; }
a:visited { color: #000000; text-decoration:none; }
a:active { color: #000000; text-decoration:none; }
a:hover { color: #0066FF; text-decoration:underline; }
</style>
</head>
<body bgcolor="#CCCCCC">
<font face="Tahoma" size="-1">
<?PHP
session_start();
$_SESSION["authenticated"]=1;
?>
<form name="Userauthentication" method="post" action="login.php">
<input type="hidden" name="project" value="0">
<input type="text" name="username">
<input type="text" name="password">
<input type="submit" name="Abschicken" value="Abschicken">
</form>
</font>
</body>
</html>

Hilfe
Neues Thema
Antworten

Nach oben

