Hallo,
Wie kann man einen Cookie in einer if-anweisung setzen?
Beispiel:
Dann kommt aber:
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\***\test30.php:7) in D:\xampp\htdocs\Philipp\test30.php on line 19
Wie kann man einen Cookie in einer if-anweisung setzen?
Beispiel:
Code:
$i = true; if ($i == true) { $inhalt = "PHP"; setcookie("php", $inhalt, time()+600); }
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\***\test30.php:7) in D:\xampp\htdocs\Philipp\test30.php on line 19
Comment