Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/11/2006, 13:28
Avatar de bookmaster
bookmaster
 
Fecha de Ingreso: febrero-2002
Ubicación: Toledo
Mensajes: 976
Antigüedad: 23 años
Puntos: 67
Weno para que te hagas una idea.

Contenido de Index.php
Código PHP:
<?php include('Paginas.php');?>
<html>
<table width="750" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php include('Header.php');?></td>
  </tr>
  <tr>
    <td><?php echo paginas();?> </td>
  </tr>
  <tr>
    <td><?php include('Footer.php');?></td>
  </tr>
</table>
</html>
Contenido de Paginas.php
Código PHP:
<?
function paginas() {
$idPagina=$_GET['idPagina'];
switch (
$idPagina)
 {
    case 
1:
        include(
"tupagina.php");
        break;    
    case 
2:
        include(
"tupagina2.php");
        break;
    default:
        include(
"defecto.php");
        break;
 }
}
?>
Estructura del enlace:index.php?idPagina=x
donde x es el valor de la página que quieras mostrar.
En Header.php y Footer.php se pondrian con el código normal y corriente.
__________________
Decir si te a funcionado la respuesta es ¡GRATIS!. Por favor indicarlo.
http://www.lohacemosweb.net
http://tutoriales.lohacemosweb.net