Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/02/2009, 09:53
afrika91
 
Fecha de Ingreso: diciembre-2008
Mensajes: 14
Antigüedad: 15 años, 4 meses
Puntos: 1
Sonrisa Envio de datos de un formulario complejo

Hola Todos!!!

Escribo en esta oportunidad para ver si pueden ayudarme on este tema que me tiene

Tengo un formulario que trae la info que quiero enviar, hago que genere los INPUT con ada dato un nombre diferente, ya que se repiten mismos tipos de datos dentro del formulario, osea:

CodProd1
CodProd2
CodProd3 ...

así con cada uno de los INPUT de una parte del formulario.

Miro el resultado obtenido del formulario mediante el código que me arroja el navegador (ahh.. el mismo se nutre de datos de varias consultas) y aparentemente esto funciona bien pero no logro enviar esos datos por e-mail

Aca pongo el código de mi form que si pueden me den una mano, ya que probé con todo tipo de script php de envio.

Saludos, Gracias.

<form id="form" name="form" method="post" action="enviarpedido1.php">
<p>&nbsp;</p>
<p>Id Usuario
<input name="IdUsuario" type="text" id="IdUsuario" value="<?php echo $row_rscliente['nombres']; ?>" />
</p>
<p>Nro Pedido
<input name="IdPedido" type="text" id="IdPedido" value="<?php echo $row_rs_nropedido['MAX(IdPedido)']; ?>" />
</p>
<p>Fecha Pedido
<input name="fechapedido" type="text" id="fechapedido" value="<?php echo $row_rspedidos['FechaPedido']; ?>" />
</p>
<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#1C4176" class="style24"><div align="center">Codigo Producto</div></td>
<td bgcolor="#1C4176" class="style24"><div align="center">NombreProducto</div></td>
<td bgcolor="#1C4176" class="style24"><div align="center">Precio</div></td>
<td bgcolor="#1C4176" class="style24"><div align="center">Cantidad</div></td>
<td bgcolor="#1C4176" class="style24"><div align="center">Subtotal</div></td>
<td bgcolor="#1C4176" class="style24"><div align="center">Descuento Gral</div></td>
</tr>
<?php for ($i=0;$i<count($totalRows_rspedidos);$i++){ ?>
<?php do { ?>
<tr>
<td><input name="CodProd<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="CodProd" value="<?php echo $row_rspedidosd['CodProd']; ?>" /></td>
<td><input name="NombreProducto<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="NombreProducto" value="<?php echo $row_rspedidosd['NombreProducto']; ?>" size="80" maxlength="80" /></td>
<td><input name="PrecioUnidad<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="PrecioUnidad" value="<?php echo $row_rspedidosd['PrecioUnidad']; ?>" size="10" /></td>
<td><input name="cantidad<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="cantidad" value="<?php echo $row_rspedidosd['Cantidad']; ?>" size="10" /></td>
<td><input name="subtotal<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="subtotal" value="<?php echo $row_rspedidosd['Subtotal']; ?>" size="10" /></td>
<td><input name="Descuento<?php echo $row_rspedidosd['IdProducto'][$i]; ?>" type="text" id="Descuento" value="<?php echo $row_rspedidosd['Descuento']; ?>" size="10" /></td>
</tr>
<?php } while ($row_rspedidosd = mysql_fetch_assoc($rspedidosd)); ?>
<?php } ?>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Comentarios
<input name="comentarios" type="text" id="comentarios" value="<?php echo $row_rspedidos['Comentarios']; ?>" size="100" maxlength="255" />
</p>
<p align="center">
<input type="submit" name="Submit" value="Enviar" />
</p>
</form>