dennis2412
Gesperrt
Ich hab mal wieder ein Problem dieses Mal mit cookies!
Ich hab folgendes geschrieben:
Und wenn ich dann darein gehe kommt folgender Fehler:
Warning: Cannot send session cookie - headers already sent by (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 32
Warning: Cannot send session cache limiter - headers already sent (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 32
Warning: Cannot add header information - headers already sent by (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 35
Woran liegt das jetzt schon wieder?
Ich hab folgendes geschrieben:
PHP:
//connect 2 mysql
mysql_connect($host,$user,$password) or die ('Konnte keine Verbindung zum Server herstellen');
mysql_select_db($dbname) or die ('Konnte Datenbank nicht auswählen');
$dbanfrage = "select * from $tabelle where nick = '$_POST[nick]' and aktiviert= '1' and passwort = '$_POST[passwort]' ";
$fetchdata = mysql_query($dbanfrage);
if($fetchdata) {
// Anzahl der Reihen pruefen
$number = mysql_num_rows($fetchdata);
if ($number == "0") { echo "Entweder du hast dich nicht aktiviert oder garnicht erst angemeldet"; }
else
{
session_start();
$_SESSION['nick'] = $_POST['nick'];
$_SESSION ['passwort'] = $_POST['passwort'];
header("Location: http://www.fwl2003.de/memberscript/index.php?nick=$nick&passwort=$passwort"); }
}
?>
Und wenn ich dann darein gehe kommt folgender Fehler:
Warning: Cannot send session cookie - headers already sent by (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 32
Warning: Cannot send session cache limiter - headers already sent (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 32
Warning: Cannot add header information - headers already sent by (output started at /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php:10) in /is/htdocs/37101/www.ofm2003.de/FWL/memberscript/control_login.php on line 35
Woran liegt das jetzt schon wieder?