Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/09/2012, 23:25
arlene90
 
Fecha de Ingreso: septiembre-2012
Mensajes: 103
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: Pasar un registro de texfield a combobox

hola fjrueda me sirvio perfecto, pero no me lista los otros nucleos, y pues quiero que elija entre los otros datos de la tabla, ya que lo estoy envando a un formulario de modificar.

Código PHP:
[HTML]<form action="<?php echo $editFormAction?>" method="post" name="form1" id="form1">
    <table align="center">
     
      <tr valign="baseline">
        <td nowrap="nowrap" align="lefth">Nucleo:</td>
        <td>
      
      <select name="plato">
      <?php
//Generamos el menu desplegable
while ($row=mysql_fetch_array($Recordset1))
{
    echo 
"<option value='".$row['id_nucelo']."''>".$row['nombre_nucleo']."</option>";
}
mysql_free_result($Recordset1)?>

</select>

           </td>
      </tr>
      <tr valign="baseline">
        <td nowrap="nowrap" align="lefth">Sigla del Programa:</td>
        <td><input type="text" name="sigla_programa" value="<?php echo htmlentities($row_Recordset1['sigla_programa'], ENT_COMPAT'utf-8'); ?>" size="32" /></td>
      </tr>
      <tr valign="baseline">
        <td nowrap="nowrap" align="lefth">Nombre del Programa:</td>
        <td><input type="text" name="nombre_programa" value="<?php echo htmlentities($row_Recordset1['nombre_programa'], ENT_COMPAT'utf-8'); ?>" size="32" /></td>
      </tr>
      <tr valign="baseline">
        <td nowrap="nowrap" align="lefth">Duracion del Programa:</td>
        <td><input type="text" name="duracion_programa" value="<?php echo htmlentities($row_Recordset1['duracion_programa'], ENT_COMPAT'utf-8'); ?>" size="32" /></td>
      </tr>
      <tr valign="baseline">
        <td nowrap="nowrap" align="right">&nbsp;</td>
        <td><input type="submit" value="Update record" /></td>
      </tr>
    </table>
    <input type="hidden" name="MM_update" value="form1" />
    <input type="hidden" name="id_programa" value="<?php echo $row_Recordset1['id_programa']; ?>" />
  </form>[/HTML]
no se que estoy haciendo mal, pero te lo agradezco mucho