eternitysoft
Mitglied
so noch ein kleines problem er will die cookies nicht setzen
Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/eternitysoft/html/meldeamt/template.php:28) in /home/webpages/lima-city/eternitysoft/html/meldeamt/login.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/eternitysoft/html/meldeamt/template.php:28) in /home/webpages/lima-city/eternitysoft/html/meldeamt/login.php on line 89
code
gibt es ne möglichkeit die cookies trotzdem zu setzen?
mfg
Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/eternitysoft/html/meldeamt/template.php:28) in /home/webpages/lima-city/eternitysoft/html/meldeamt/login.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/eternitysoft/html/meldeamt/template.php:28) in /home/webpages/lima-city/eternitysoft/html/meldeamt/login.php on line 89
code
PHP:
<?php
session_start ();
include ('template.php');
include ('db/mysql_connect.php');
// jede menge code
if ($action == "Login")
{
if ((!empty($name)) && (!empty($passwort)))
{
$users=mysql_query("select * from ma_users where name='$name'");
while($row3 = mysql_fetch_array($users))
{
$id = $row3['id'];
$user = $row3['user'];
$email = $row3['email'];
$style = $row3['style'];
$pw2 = $row3['password'];
}
$pw=sha1($passwort);
if ($pw ==$pw2)
{
setcookie("username",$user['name'],time()+2592000);
setcookie("pw",$pw,time()+2592000);
$_SESSION["user_id"] = $id;
$_SESSION["user"] = $user;
$_SESSION["email"] = $email;
$_SESSION["style"] = $style;
$style = $_SESSION["style"] ;
echo 'eingeloggt' ;
echo '<meta http-equiv="refresh" content="22; URL=index.php">';
}
else
{
}
}
else
{
}
}
//wieder jede menge code
include ('db/mysql_close.php');
?>
gibt es ne möglichkeit die cookies trotzdem zu setzen?
mfg