Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/03/2009, 18:31
Avatar de argy
argy
 
Fecha de Ingreso: octubre-2007
Ubicación: Longitud 75º Latitud 18º Sur
Mensajes: 614
Antigüedad: 16 años, 6 meses
Puntos: 18
Respuesta: Mostrar datos de consulta en formulario HTML

Código :
Ver original
  1. ...
  2. echo '<form method="post" action="script_actualizador.php">';
  3. while($row=mysql_fetch_row_array($result))
  4. {
  5. echo '<input type="text" name="campo1" value="'.$row[0].'" />';
  6. echo '<input type="text" name="campo2" value="'.$row[1].'" />';
  7. //...
  8. }
  9. echo '<input type="submit" name="actualizar" value="Guardar Cambios" />';
  10. echo '</form>';
__________________
Software libre para un mundo libre.

Eventualmente en el foro.