hola a todos, soy muy nuevo en esto, estoy haciendo un programa donde el usuario cuando elija una de las opciones del combobox automaticamente salgan las opciones, el listado de opcones del combobox la estoy llamando de la base de datos pero no me sale este es mi codigo, se acepta todo 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?tarea=$tarea' SELECTED> ".$g['descripcion']."</option>";
}
?>
<input name="form1" type="hidden" value="<?php echo $tarea ?>" />
</form>
<FORM ACTION="combito.php" class="Estilo2" id="form1" name="form1" method="get">
<label> </label>
</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ó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"> </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ó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>
<table width="515" height="51" align="center">
<tr bgcolor="#CCCCCC" class="Estilo1">
<td width="164">Unidad de medida: </td>
<td width="339" height="45"><?php echo $row {'programado'} ?></td>
</tr>
</table>
<p> </p>
</form>
<p></p>