Tema: header??
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/03/2004, 13:19
arcus
 
Fecha de Ingreso: agosto-2003
Ubicación: Viña del mar
Mensajes: 280
Antigüedad: 20 años, 8 meses
Puntos: 0
saludos:

acontinuacion pongo el codigo, para ver si me pueden decir cual es el problema

pagina3.php

<?
session_start();
$_SESSION['a'];
$_SESSION['b'];
$_SESSION['c'];
include ("seguridad.php");
?>

<?
$conn = mysql_connect("localhost","","");
mysql_select_db("nom_data",$conn);
$ql="select dat from dataloc";
$ok=mysql_query($ql,$conn);

if(mysql_db_query("nom_data",$ql,$conn))
{
$titulo=$_POST["titulo"];
$texto=$_POST["texto"];
$to=mysql_fetch_array($ok);
$de="[email protected]";
while ($row=mysql_fetch_array($ok))
{
$to["dat"].=",".$row["dat"]."";

}

if(!empty($to["dat"]))
{
if(mail($to["dat"],$titulo,$texto,"from: <$de>"))
{

header("Location: envioar.php");
exit();
}
else{

header("Location: error.php");
exit();
}
}
else{
header("Location: error.php");
exit();
}

}
else{
header("Location: conec.php");
}


?>