Ver Mensaje Individual
  #11 (permalink)  
Antiguo 14/07/2011, 17:27
elena_22
 
Fecha de Ingreso: junio-2010
Mensajes: 117
Antigüedad: 13 años, 11 meses
Puntos: 1
Respuesta: header("location:") warning

Mis scripts tanto de ordenar.php y header.php estan en el mensaje de arriba, pero te los pongo de nuevo:

archivo ordenar.php

<?php session_start();
include_once("../../config.php");
require_once '../../system/ConectorMySQL.class.php';
require_once '../../system/Query.class.php';
include_once("../../estados.php");
$conexion1=new estados();
$estados=$conexion1->seleccionar();
include_once("../../ciudad.php");
$conexion2=new ciudad();
$ciudades=$conexion2->seleccionar();
include_once("../../sucursal.php");
$conexion3=new sucursal();
$sucursales=$conexion3->seleccionar();
include_once("header.php");
if(!empty($_POST['enviar'])){
$_SESSION['carrito']['estado']=$_POST['estado'];
$_SESSION['carrito']['ciudad']=$_POST['ciudad'];
$_SESSION['carrito']['sucursal']=$_POST['sucursal'];
$_SESSION['carrito']['entrega']=$_POST['entrega'];
$_SESSION['carrito']['hora']=$_POST['hora'];
header("location:categorias.php");
}
else{?>
<form id="form1" name="form1" method="post" action="ordenar.php">
<table>
<tr>
<td>Estado:</td>
</tr>
<tr>
<td>
<select name="estado" id="estado" onchange="document.form1.submit()" style="width:200px;">
<option value="0">Seleccione</option>
<? while($filae = mysql_fetch_array($estados)){?>
<option value="<?=$filae['id']?>" <? if($_POST['estado']==$filae['id']){?> selected="selected"<? }?>><?=$filae['nombre']?></option>
<? }?>
</select>
</td>
</tr>
<tr>
<td align="center"><input type="submit" name="enviar" id="enviar" value="Continuar" /></td>
</tr>
</table>
</form>
<?php }
include_once('footer.php');?>

y el archivo header.php contiene la linea 6 es donde empiezan los estilos:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Prueba</title>
<style type="text/css">.link{border:#A63400 solid 1px; background-color:#BF5D30; height:35px; padding-top:8px;}.link a{ color:#ffffff; text-decoration:none; font-size:16px; font-weight:bold; font-family:"Garamond 3"}.link a:hover{ color:#ffffff; text-decoration:underline; font-size:16px; font-weight:bold; font-family:"Garamond 3"}.linkhead{ background-color:#A62800; height:35px; padding-top:8px; font-size:14px; font-weight:bold; font-family:"Garamond 3"; width:100%; text-align:left;}.miga{ color:#FF9E73; text-decoration:none;}.container{color:#ffffff;}span{ color:#ff7b40}.linkbolsa{ border-bottom:#A62800 solid 1px; height:35px; padding-top:8px;}.linkbolsa a{color:#ffffff; text-decoration:none; font-size:16px; font-weight:bold; font-family:"Garamond 3"}.linkbolsa a:hover{color:#ffffff; text-decoration:underline; font-size:16px; font-weight:bold; font-family:"Garamond 3"}.inicio{ color:#ffffff; text-decoration:none;}/*.inicio a{color:#ffffff; text-decoration:none; font-size:16px; font-weight:bold; font-family:"Garamond 3"}.inicio a:hover{color:#ffffff; text-decoration:underline; font-size:16px; font-weight:bold; font-family:"Garamond 3"}*/.select{ width:200px;}#platillo{ width:320px;}#tit_pla{ color:#999999; font-weight:bold;}#tit_pla a{ color:#999999; text-decoration:none;}#tit_pla a:hover{ color:#999999; text-decoration:underline;}#precio{ color:#FFFFFF; font-weight:bold;}</style>
</head>

Te marque en rojo las lineas 6 y 21 que son donde marca el warning