Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/12/2004, 22:13
elteddy
 
Fecha de Ingreso: marzo-2002
Mensajes: 50
Antigüedad: 22 años
Puntos: 0
Este es un resumen de los primeros campos, el form es muy largo para copiarlo completo....



<form name="PEDIDOS" method="post" action="pedido.php">
<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">
</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 .= "Telefono: " . $HTTP_POST_VARS["telefono"] . "\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