Ver Mensaje Individual
  #8 (permalink)  
Antiguo 18/03/2015, 13:51
cron4l
 
Fecha de Ingreso: febrero-2015
Ubicación: Mexico
Mensajes: 46
Antigüedad: 9 años, 11 meses
Puntos: 3
Respuesta: error codigo else en php

Amigo vi varios errores de sintaxis en redireccionar.php

trata de usar este:

Código PHP:
Ver original
  1. <?php
  2.  
  3. $palabra1=$_GET["lista1"];
  4.  
  5. if($palabra1 == "Hogar"){
  6.     header("Location: portada.html");
  7. }else if($palabra1 == "Empresa"){
  8.     header("Location: reporte3.html");
  9. }
  10.  
  11. ?>

Si TE SALE OBJETO NO LOCALIZADO ES POR QUE TUS ARCHIVOS portada.html o reporte3.html NO ESTAN EN EL MISMO DIRECTORIO QUE redirecconar.php, EN TODO CASO PASA LOS ARCHIVOS A LA MISMA CARPETA O INDICA LA DIRECCION SI ESTAN EN OTRAS CARPETAS
__________________
Agradecer no cuenta nada \o/ +1

<<-----CentOS----->>

Última edición por cron4l; 18/03/2015 a las 13:56