Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/12/2011, 00:33
leoangels
 
Fecha de Ingreso: marzo-2011
Ubicación: Zacatecas
Mensajes: 59
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: Menu dinamico en PHP

en funciones tengo el switch
Código PHP:
<?php

function Navegacion($F) {

    switch (
$F) {

        case 
"Historia": include("_pages/locutores.php");
            break;

        case 
"Fotos": include("_pages/fotos.php");
            break;

        case 
"Contacto": include("_pages/contacto.php");
            break;
        default: include(
"_pages/inicio.php");
            break;
    }
}

?>
en el Index tengo
Código HTML:
<?php
include 'sistema/funciones.php';
?>
<tr>
        <td class="menu"><table border="0" cellspacing="0" cellpadding="0" width="100%">
          <tr>
              
         
            <td class="linkMenu"> <a href="sistema/funciones.php?F=Buscar">Buscar</a></td>
              
          <td class="linkMenu"><a href="sistema/funciones.php?F=Historia">Historia</a></td>
 <td class="linkMenu"><a href="sistema/funciones.php?F=Contacto">Contacto</a></td>
 <td class="linkMenu"><a href="sistema/funciones.php?F=Fotos">Fotos</a></td>
          </tr>
        </table></td>
      </tr>
      <tr>
          <td class="contenido"><?php  Navegacion($_GET['F']);?></td>
      </tr> 
si no lo mando llamar con include 'sistema/funciones.php'; me tira error en la funcion Navegacion