Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/06/2010, 11:01
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 10 meses
Puntos: 6
Respuesta: error al redireccionar

Cita:
Iniciado por rpv Ver Mensaje
tienes dos errores:

1. te falta ; (punto y coma) en el mysql_query()
2. el header no va a funcionar puesto que ya se imprimio esto:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Untitled Document</title>
  5. </head>
  6.  
  7. </body>
  8. </html>

antes del header, sugerencia: elimina ese segmento de código html, es innecesario.

ok he eliminado el html, y he puesto las ;

y me ha dado este error:
Cita:
Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/d317375696/htdocs/enviar.php:1) in /homepages/18/d317375696/htdocs/enviar.php on line 20
el 20 es:
Código PHP:
Ver original
  1. header ("Location: http://www.web.com");

Última edición por Most; 09/06/2010 a las 11:07