Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/05/2015, 04:04
eanamhe
 
Fecha de Ingreso: mayo-2015
Mensajes: 1
Antigüedad: 9 años
Puntos: 0
Respuesta: Lista Desplegable con valores condicionados en un select inicial

tengo un problema parecido . Mi codigo :
<FORM NAME="top_form" METHOD="POST" ACTION="php/tframe.php">
<TABLE COLS="4" style="text-align:center;width:20em;font-size:1.2em;margin-top:10px;margin-bottom:0">
<TR>
<TD COLSPAN="4" style="padding:5px 0px">
<b>Seleccione un item de la lista:</b><br>
<SELECT ID="item" NAME="item" style="width:100%" ONCHANGE='parent.BOTTOM.location="bframe.php";docu ment.top_form.submit()'>
<? function load_items() {
global $items1, $items2, $items3, $items4;

$selected=0;

foreach (array_merge($items1, $items2, $items3, $items4) as $item) {
print '<option value="'.$codes[$item].'"';
if (!$selected and $_REQUEST['item']==$codes[$item]) {
print " selected";
$selected=1;
}
print ">$item</option>\n";
}
} ?>
</SELECT>
</TD>
</TR>
<?
# Código con los botones a mostrar dependiendo del item seleccionado
load_buttons();
?>
</TABLE>


No consigo ver el contenido en el desplegable