Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/12/2003, 21:51
Argie
 
Fecha de Ingreso: septiembre-2003
Mensajes: 7
Antigüedad: 20 años, 7 meses
Puntos: 0
Ayuda por favor

Tengo esta pagina:

out.php
---------

<?
extract($_GET);
switch ($id) {
case "12":
header ("Location: www.microsoft.com");
exit;
break;
case "13":
header ("Location: www.altoque.com");
exit;
break;
}
?>

El valor de la variable id la paso desde esta pagina:

index.php
------------

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p><a href="out.php?id=12">Link 1</a> </p>
<p>&nbsp;</p>
<p><a href="out.php?id=13">Otro link</a></p>
</body>
</html>

Al hacer click en algunos de los dos links me aparece este error:

Warning: Cannot modify header information - headers already sent by (output started at /home/kaguitar/public_html/out.php:2) in /home/kaguitar/public_html/out.php on line 9


Que estoy haciendo mal?, tengo entendido que no debe haber nada de codigo html antes del header, y sialgo entiendo, en out.php no hay nada de codigo html antes de header, de hecho no antes ni despues, por eso no entiendo el error.

Por favor, ayudenme

Gracias.
Matias.

Última edición por Argie; 22/12/2003 a las 21:53