Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/08/2008, 12:54
Rockzilla
 
Fecha de Ingreso: julio-2008
Mensajes: 129
Antigüedad: 15 años, 10 meses
Puntos: 0
Porblema con combobox me aparec la lista en blanco

Saludos a todos,
Tencon un inconveniente quiero llamar desde un combobox una lista de codigos de tareas q al precionar una d ellas automaticamente me muestre la informacion y todo lo hago llamando de la base de datos, creo q me llama la lista por q se despeja el combobox pero me sale en blanco aqui le dejo mi codigo espero cualquier tipo de ayuda
Código PHP:
<style type="text/css">
<!--
.Estilo1 {font-family: Arial}
-->
</style>
<p>
<table width="674" height="30" align="center">
  <tr bgcolor="#CCCCCC" class="Estilo1">
  <td width="87" height="24"
  </td>
</p>
<form name="form1" method="post" action="combito.php">
  <?php
$tarea
=$_GET['tarea'];
?>
  <select name="tarea" id="tarea" method="post" onChange="location.href=this.value"/>
  
  <option>__</option>
  <?php 
   
include ('connection1.php');
    
$e="SELECT tarea FROM actividades ORDER BY tarea";
    
$bus mysql_query($e,$link) or die("Error en query $e:" .mysql_error());
    while(
$g=mysql_fetch_array($bus))
    {
$h=$g['tarea'];
    
$descripcion=$g['descripcion'];
    if (
$h==$h)  
                    echo 
"<option value='combito.php.php?tarea=$tarea'selected='selected'>$descripcion</option>";
                    }
    
?>
  <input name="form1" type="hidden" value="<?php echo $tarea ?>" />
  <input name="form1" type="hidden" value="<?php echo $tarea ?>">
</form>
</form>
<form action="" name="form1" method="get">
<FORM ACTION="combito.php" class="Estilo2" id="form1" name="form1">
<form id="form1" name="form1" method="post" action="combito.php">
<label> </label>
<form method="post" action="combito.php">
&nbsp;
</td>
</tr>
<table width="513" height="73" align="center">
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td width="253"><div align="center">Sistema de Monitoreo y Evaluaci&oacute;n </div></td>
    <td width="124"><div align="center"></div>
        <div align="center">Dependencia</div></td>
    <td width="120"><div align="right"><?php echo $row {'dependencia'?></div></td>
  </tr>
</table>
<table width="514" height="30" align="center">
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td width="191">Nombre de la Tarea </td>
    <td width="311" height="24"><?php echo $row {'actividad'?></td>
  </tr>
</table>
<table width="515" height="164" align="center">
    <td width="218" bgcolor="#CCCCCC">Fecha de inicio </td>
    <td width="184" height="28" bgcolor="#CCCCCC"><p>
    <?php echo $row {'f_i'?></p></td>
    <td width="97" rowspan="6" nowrap bordercolor="#FFFFFF" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td>Fecha de final </td>
    <td height="24"><?php echo $row {'f_f'?></a></td>
  </tr>
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td>Fecha real de culminaci&oacute;n</td>
    <td height="24"><?php echo $row {'f_r'?></a></td>
  </tr>
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td>Monto de la actividad </td>
    <td height="24"><?php echo $row {'monto'?></td>
  </tr>
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td>Trimestre a Ejecutar </td>
    <td height="24"><?php echo $row {'trimestre'?></td>
  </tr>
  <tr bgcolor="#CCCCCC" class="Estilo1">
    <td>Unidad de medida: </td>
    <td height="24"><?php echo $row {'unidad'?></td>
  </tr>
</table>
<p></p>