switch($seccion) { case "agregar": include("agregar.php"); break; case "editar/$extra": include("editar.php?id=$extra"); break; case "perfil": include("perfil.php"); break; default: include("menu.php"); break;