Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/11/2014, 08:24
kennylajara
 
Fecha de Ingreso: noviembre-2014
Mensajes: 17
Antigüedad: 9 años, 5 meses
Puntos: 0
Respuesta: Header sencillísimo que no funciona

Cita:
Iniciado por melkart239 Ver Mensaje
Ya había leído antes los típicos errores al usar el header, que no tenía que haber nada antes que llamará a pantalla, nada de includes, espacios en blanco y líneas en blanco.
Haz ignorado uno de los inconvenientes que tú mismo haz mencionado. Cambia el código y ponlo así:
Código:
<?php
header('Location: pral.php');
exit();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Validar usuario</title>
</head>
<body>
</body>
</html>
No lo he probado, pero debería funcionar.