Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/09/2012, 05:54
jossss
 
Fecha de Ingreso: mayo-2006
Mensajes: 475
Antigüedad: 18 años
Puntos: 58
Respuesta: Consulta Notice: Use of undefined constant operacion

Claro, ese error te va a dar si no pasas ninguna variable GET, debes comprobar, al igual que haces con nume, si existe GET operacion.
Código PHP:
Ver original
  1. <?php
  2.     $operacion='';
  3.     $nume='';
  4.         if(isset($_GET['operacion'])){
  5.             $operacion= $_GET['operacion'];
  6.         }    
  7.          if(isset($_GET['nume'])){
  8.             $nume= $_GET['nume'];
  9.         }
  10.         if ($operacion=='informes'){
  11.             include('informes.php');
  12.         }elseif ($operacion=='informe1'){
  13.             include('informe1.php');
  14.         }else{
  15.             include('listado.php');
  16.         }
  17.     ?>