Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/06/2008, 04:35
Avatar de manumaf
manumaf
 
Fecha de Ingreso: mayo-2007
Ubicación: Argentina
Mensajes: 854
Antigüedad: 17 años
Puntos: 6
Problema con menu

Hola miren yo tengo el siguiente codigo:

Código PHP:
<tr>
                <td width="18"><img src="index/menu/imghome.gif" width="18" height="17" /></td>
                <td width="128"><a href="asd"><img src="index/menu/lethome.gif" width="42" height="17" border="0" /></a></td>
              </tr>
              <tr>
                <td colspan="2"><samp class="linksdemenu">
                  <?php
        $mn 
$_GET['mn'];  
        switch(
$mn){
        default:
        include(
"index/menu/seccions/home.php");
        break;
        }
?>
                </samp></td>
              </tr>
              <tr>
                <td><img src="index/menu/imghabbo.gif" width="13" height="16" /></td>
                <td><a href="index.php?mn=menu2"><img src="index/menu/lethabbo.gif" width="46" height="16" border="0" /></a></td>
              </tr>
              <tr>
                <td colspan="2"><samp class="linksdemenu">
                  <?php
        $mn 
$_GET['mn'];  
        switch(
$mn){
        case 
'menu2':
        include(
"index/menu/seccions/habbo.php");
        break;
        }
?>
                </samp></td>

Lo que quiero lograr es que cuando aga clic en el segundo boton osea que cargue este codigo:
Código PHP:
        <?php
        $mn 
$_GET['mn'];  
        switch(
$mn){
        case 
'menu2':
        include(
"index/menu/seccions/habbo.php");
        break;
        }
?>
se me desasparesca el primero pero el problema es que quedan los dos cargados. Como ago?