Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/07/2010, 09:52
sebadivididos
 
Fecha de Ingreso: julio-2010
Mensajes: 4
Antigüedad: 13 años, 9 meses
Puntos: 0
Array por POST

Hola, tengo un problema con un formulario, el cual recorre un array y con un input text completo la cantidad:

<form action="pre_pedido.php" method="post" name="form1" id="form1">
<table width="100%" border="0">
<tr>
<td>Detalle</td>
<td>Precio</td>
<td>Cantidad</td>
<td colspan="2">&nbsp;</td>
</tr>
<?php while ($row = mysql_fetch_array($result)){;?>
<tr>
<td><?php echo $row['detalle']; ?></td>
<td><?php echo $row['precio']; ?></td>
<td><label for="cant"></label>
<input name="cant" type="text" id="cant" /></td>
<td><label for="button"></label>
<input type="submit" name="button" id="button" value="Enviar" /></td>
</tr>
<?php } ?>
</table>
</form>

el problema esta en que recibo en la pagina siguiente el valor del input text pero no se como nombrar los datos del array para recibirlos.
Probé con GET y paso los datos del array pero no se como pasar los del input text.
Agradeceria cualquier ayuda.
Gracias