Wenas dan_arg:
Gracias x responder, ese codigo funciono, pero hay otro tema, yo kiero q la opcion sea cuando se cargue el default:
Código PHP:
<?
$id=$_GET['seccion'];
switch ($id) {
default:
include("principal.php");
}
?>
El codigo q puse es: Código PHP:
<?php
if ($seccion =="principal")
echo '<iframe src=http://ad.iefactory.com/468x80.htm width=468 height=80 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no target=_top></iframe>';
else
echo '<iframe src=publihost.htm width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>';
?>
Funciona bien, pero tendria q ser index.php, no index.php?seccion=principal
Se puede lo q digo?
Un saludo, gracias!! ^^