Foros del Web » Programando para Internet » PHP »

ayuda con form de pedido

Estas en el tema de ayuda con form de pedido en el foro de PHP en Foros del Web. ayuda con form de pedido me llega el mail pero sin las cantidades solicitadas, no se donde está el error el form está en www.millennium.cl/sitio/pedido.php ...
  #1 (permalink)  
Antiguo 19/12/2004, 22:51
 
Fecha de Ingreso: marzo-2002
Mensajes: 50
Antigüedad: 22 años
Puntos: 0
ayuda con form de pedido

ayuda con form de pedido
me llega el mail pero sin las cantidades solicitadas, no se donde está el error
el form está en www.millennium.cl/sitio/pedido.php
porfa ayudenme es urgente
__________________
rodrigo
  #2 (permalink)  
Antiguo 20/12/2004, 00:02
Avatar de baklao  
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Ana - Isla de Margarita
Mensajes: 482
Antigüedad: 19 años, 5 meses
Puntos: 0
Hola que tal si puedes mostrar la parte del codigo donde haces el tomas los valores del formulario pdriamos ayudarte.

Salu2.
__________________
Atte. Mohamed :aplauso:
  #3 (permalink)  
Antiguo 20/12/2004, 01:10
 
Fecha de Ingreso: marzo-2002
Mensajes: 50
Antigüedad: 22 años
Puntos: 0
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="top">
<? if (!$HTTP_POST_VARS){ ?>
<form name="PEDIDOS" method="post" action="">
<table width="772" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr align="left" bordercolor="#0066FF" bgcolor="#0066FF">
<td valign="top" bgcolor="#0066FF" class="Estilo8"><p class="Estilo11">Nombre<br>
<input name="nombre " type="text" class="cantidad" id="nombre ">
<br>
Apellido<br>
<input name="apellido" type="text" class="cantidad" id="apellido">
<br>
<br>
</p> </td>
<td valign="top" bgcolor="#0066FF" class="Estilo8"><span class="Estilo11"><strong>Email<br>
<input name="mail" type="text" class="cantidad" id="mail">
<br>
Tel&eacute;fono<br>
<input name="telefono" type="text" class="cantidad" id="telefono">
</strong></span><strong><br>
</strong></td>
<td bgcolor="#0066FF" class="Estilo8">&nbsp;</td>
<td rowspan="2" bgcolor="#0066FF" class="Estilo8">&nbsp;</td>
</tr>
<tr align="left" bordercolor="#0066FF" bgcolor="#0066FF">
<td bgcolor="#0066FF" class="Estilo8"><span class="Estilo11">IMPRESORAS EPSON</span></td>
<td bgcolor="#0066FF" class="Estilo8">&nbsp;</td>
<td bgcolor="#0066FF" class="Estilo8">&nbsp;</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td height="20" class="xl47">Reseteador CHIPs </td>
<td width="408" height="20" class="xl61">Reseteador Universal para Epson </td>
<td width="96" height="20" class="xl45">Todos </td>
<td width="57" height="20" align="center"><input name="Reseteador CHIPs " type="text" class="cantidad" id="Reseteador CHIPs " size="6" maxlength="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048120 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">Negro </td>
<td height="20" align="center"><input name="T048120 " type="text" class="cantidad" id="T048120 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048220 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">Cyan </td>
<td height="20" align="center"><input name="T048220 " type="text" class="cantidad" id="T048220 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048320 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">M;agenta </td>
<td height="20" align="center"><input name="T048320 " type="text" class="cantidad" id="T048320 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048420 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">Yellow </td>
<td height="20" align="center"><input name="T048420 " type="text" class="cantidad" id="T048420 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048520 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">Cyan light </td>
<td height="20" align="center"><input name="T048520 " type="text" class="cantidad" id="T048520 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl67">T048620 </td>
<td height="20" class="xl68">Epson Stylus Photo R300M/R300/RX 500 </td>
<td height="20" class="xl91">Mag. Light </td>
<td height="20" align="center"><input name="T048620 " type="text" class="cantidad" id="T048620 " size="6">
</td>
</tr>
<tr align="left" bordercolor="#FFFFFF" bgcolor="#CCCCFF">
<td width="206" height="20" class="xl49">T046120 </td>
<td height="20" class="xl66">Epson Stylus C63/C83/CX6300 Black </td>
</table>
</form></td>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "PEDIDO\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Apellido: " . $HTTP_POST_VARS["apellido"] . "\n";
$cuerpo .= "E-mail: " . $HTTP_POST_VARS["mail"] . "\n";
$cuerpo .= "Teléfono: " . $HTTP_POST_VARS["teléfono"] . "\n";

$cuerpo .= "Reseteador CHIPs: " . $HTTP_POST_VARS["Reseteador CHIPs"] . "\n";
$cuerpo .= "T048120: " . $HTTP_POST_VARS["T048120"] . "\n";
$cuerpo .= "T048220: " . $HTTP_POST_VARS["T048220"] . "\n";
$cuerpo .= "T048320: " . $HTTP_POST_VARS["T048320"] . "\n";


//mando el correo...
mail("[email protected]","PEDIDO",$cuerpo);

//doy las gracias por el envío
echo("Muchas Gracias, el formulario fue enviado correctamente");
}
?>
</tr>
</table>
</body>
</html>
__________________
rodrigo
  #4 (permalink)  
Antiguo 20/12/2004, 01:11
 
Fecha de Ingreso: marzo-2002
Mensajes: 50
Antigüedad: 22 años
Puntos: 0
les envio una muestra

la primera parte es el ingreso de los datos y luego la forma en q se envia
no se de php pero tome la base de un form q me enviaron y la modifiqué
gracias por la ayuda
__________________
rodrigo
  #5 (permalink)  
Antiguo 20/12/2004, 01:18
Avatar de lado2mx
Colaborador
 
Fecha de Ingreso: agosto-2001
Ubicación: Veracruz
Mensajes: 3.720
Antigüedad: 22 años, 8 meses
Puntos: 9
cual es el problema del código, no envia el formulario???

pd... se nota que eres muy novato
  #6 (permalink)  
Antiguo 20/12/2004, 01:50
Avatar de baklao  
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Ana - Isla de Margarita
Mensajes: 482
Antigüedad: 19 años, 5 meses
Puntos: 0
Hola q tal sustiyuye esto

Código HTML:
<form name="PEDIDOS" method="post" action=""> 
Por esto

Código HTML:
<form name="PEDIDOS" method="post" action="pedido.php"> 
pruebalo y dime como te fue.

Suerte y Salu2.
__________________
Atte. Mohamed :aplauso:
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:22.