![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/10/2010, 19:25
|
| | Fecha de Ingreso: agosto-2010
Mensajes: 41
Antigüedad: 14 años, 6 meses Puntos: 0 | |
Respuesta: cambio de pagina al seleccionar una opcion de una lista Cita:
Iniciado por thezzin Hola, eso lo puedes lograr con la opción onChange y la imprimes con $_GET[]
aquí un Ejemplo: Código PHP: <?php
$up = 'una opcion';
$opa = 'opcion A';
$opb = 'suma';
if(isset($_GET['sele'])){
$ver = $_GET['sele'];
echo 'Opcion Seleccionada es: <b>',$ver,'</b>';
}
?><br /><br />
Seleccione <select onChange="document.location='<?php $_SERVER['PHP_SELF']?>?sele='+this.value">
<option><?php echo $up;?>
<option value="opcion A"><?php echo $opa;?>
<option value="suma"><?php echo $opb;?>
</select> Muchisimas gracias!!!!! ![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif) ![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif) ![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif) ![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif) ![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif) Que dios te bendiga ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) :apla uso: |