![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/07/2011, 01:12
|
| | Fecha de Ingreso: febrero-2007
Mensajes: 31
Antigüedad: 18 años Puntos: 0 | |
submit dinámicos Hola, tengo este código. Se crean un boton por cada fila de la base de datos.Quiero que cuando se pulse el botón se envie el id_viaje o el nombre al que pertenece. ¿Que tendría que modificar?
<form method="post" action='insImagen.php' enctype='multipart/form-data'>
<table>
<?php while ($row = mysql_fetch_array($valor)){
$id_viaje=$row['id_viaje']?>
<tr>
<td><a href="" name="viaje"><?php echo $row['nombre'];>
</a></td>
<td><input id='im' name='im' type="file"></td>
<td><input name='insIm' type='submit' value="insertar imagen"></td>
</tr>
<?}?>
</table>
<?}?>
</form> |