
30/12/2003, 20:06
|
| | Fecha de Ingreso: febrero-2003
Mensajes: 165
Antigüedad: 22 años, 1 mes Puntos: 0 | |
error header Hola...
tengo el siguiente error:
Warning: Cannot add header information - headers already sent by (output started at /var/www/html/develcubaweb/admin/index.php:11) in /var/www/html/develcubaweb/admin/insert_tprec1.php on line 17
Mi código de insert_tprec1.php es:
if(is_array ($HTTP_POST_VARS['nombhabi'])){
$_SESSION['nombhabi'] = array();
while (list ($clave, $val) = each ($HTTP_POST_VARS['nombhabi'])) {
array_push ($_SESSION['nombhabi'],$val);
}
}
else{
if(!is_array ($HTTP_POST_VARS['nombhabi'])){
header("Location:index.php?idBody=admin_hote_edit" );
exit;
}
}
index.php comienza así:
<?php
session_start();
include 'conect_db.php';
?>
<html>
<head>....
Tengo que decir que esta misma operación la hago con otros ficheros y no me dan error. He buscado, leído y roto la cabeza pero no encuentro el motivo del error.
Ah, felicidades. pueden responder este mensaje después de la borrachera del fin de año.
Qué la pasen bien, chao |