Warning: Cannot modify header information - headers already sent by (output started at /homepages/6/d346913069/htdocs/jesusbochs/login.php:5) in /homepages/6/d346913069/htdocs/jesusbochs/includes/functions.php on line 6
Mi código es el siguiente:
......
if($user["password"] == $password)
{
$_SESSION["username"] = $username;
$_SESSION["userid"] = $user["id"];
session_msg("Iniciada sesión. ");
redirect_to("menu_inter.php");
......
function redirect_to($url)
{
header("Location:".$url);
exit();
}
.......
En el sesvidor local de mi ordenador funciona perfectamente pero en la Web me da este error.
Agradecería enormemente vuestra ayuda.
Jesús B.
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)