Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/03/2008, 18:05
Avatar de hgp147
hgp147
 
Fecha de Ingreso: diciembre-2006
Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 18 años, 1 mes
Puntos: 36
Re: me pueden ayudar con IF y ELSE porfavor?

Hola goku_goku . Proba algo así:

Código PHP:
<?php 
 
$seccion 
$_REQUEST['seccion']; 


$secciones = array("juegos","informacion","descargas");


if(
in_array($seccion$secciones)){

include(
$seccion ".php");

}else{

include(
"index.php");

}

?>