Código PHP:
<div>
<a href="?id=default" title="Cero">Inicio</a>
<a href="?id=01" title="Uno">Sección 1</a>
<a href="?id=02" title="Dos">Sección 2</a>
<a href="?id=03" title="Tres">Sección 3</a>
<a href="?id=04" title="Cuatro">Sección 4</a>
<a href="?id=05" title="Cinco">Sección 5</a>
<a href="?id=06" title="Seis">Sección 6</a>
<a href="?id=07" title="Siete">Sección 7</a>
<a href="?id=08" title="Contáctenos">Contáctenos</a>
</div>
<?
$id=$_GET['id'];
switch ($id) {
case 01:
include("01.shtml");
break;
case 02:
include("02.shtml");
break;
case 03:
include("03.shtml");
break;
case 04:
include("04.shtml");
break;
case 05:
include("05.shtml");
break;
case 06:
include("06.shtml");
break;
case 07:
include("07.shtml");
break;
case 08:
include("Principal.shtml");
break;
default:
include("Contacto.shtml");
}
?>
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
Solo pasa si tengo más de 7 cases, al octavo los tengo que invertir.
¿Alguien me puede explicar que pasa?
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)