El codigo seria algo asi:
Select de 'Si', 'No'
Código:
Si escoge 'Si' entonces que muestre estos:<select name="estudia_act_cab"> <option value=" ">Seleccione...</option> <option value="Si">Si</option> <option value="No">No</option> </select>
Código PHP:
Entidad educativa:
<select name='cod_program_est'>
<option value="0"selected></option>
<?
$sql3 = "select * from program_est";
$result3 = mysql_query ($sql3, $link);
while ($row = mysql_fetch_array ($result3)) {
$mcodpr = $row['cod_program_est'];
$mprog = $row['dtalle_program_est'];
if ($pro == $mcodas)
echo "<option value= '$mcodpr'> $mprog </option>";
else
echo "<option value= '$mcodpr'> $mprog</option>";
}
echo "</option>";
?>
</select></td>
Tipo de institucion actual:
<select name='cod_ins'>
<option value="0"selected></option>
<?
$sql3 = "select * from institucion";
$result3 = mysql_query ($sql3, $link);
while ($row = mysql_fetch_array ($result3)) {
$mcodpr = $row['cod_ins'];
$mprog = $row['dtalle_ins'];
if ($pro == $mcodas)
echo "<option value= '$mcodpr'> $mprog </option>";
else
echo "<option value= '$mcodpr'> $mprog</option>";
}
echo "</option>";
?>
</select>
Código PHP:
Ultimo año aprobado:
<select name='cod_anio_aprob'>
<option value="0"selected></option>
<?
$sql3 = "select * from anio_aprob";
$result3 = mysql_query ($sql3, $link);
while ($row = mysql_fetch_array ($result3)) {
$mcodpr = $row['cod_anio_aprob'];
$mprog = $row['dtalle_anio_aprob'];
if ($pro == $mcodas)
echo "<option value= '$mcodpr'> $mprog </option>";
else
echo "<option value= '$mcodpr'> $mprog</option>";
}
echo "</option>";
?>
</select>