Ver Mensaje Individual
  #26 (permalink)  
Antiguo 28/12/2004, 12:41
safe
 
Fecha de Ingreso: enero-2003
Ubicación: Córdoba, Argentina
Mensajes: 1.047
Antigüedad: 21 años, 1 mes
Puntos: 10
Bueno, a esto lo probe y deberia funcionar bien si lo usas con el archivo del otro post (el de crear las filas con el select)

Código PHP:
<?
$mail 
"$email";
$asunto "COTIZACION";
$headers "MIME-Version: 1.0\r\n";
$headers .= "From: [email][email protected][/email]\r\n";  
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$cuerpo "
<HTML>
<HEAD>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<TITLE>Archivo ENVIADO</TITLE>
</HEAD>
<BODY bgcolor='ffffff' text='000000' leftMargin='10' topMargin='10'>
<table width=700 border=0 cellpadding=2 cellspacing=2><tr><td>
<table border=0 width=100% cellpadding=0 cellspacing=0>
  <tr>
   <td align=left colspan=2>
     Santiago, "
.$_POST["dia"]." de ".$_POST["mes"]." del ".$_POST["ano"]."<br>
   </td>
  </tr>
  <tr>
   <td align=center colspan=2 width=100%>
     <table border=1 cellpadding=0 cellspacing=0 bordercolor=555555 width=680>
      <tr>
       <td align=center width=80>CANT.</td>
       <td align=center width=100>ITEM</td>
       <td align=center width=220>ARTICULO</td>
       <td align=center width=140>V/UNIT.</td>
       <td align=center width=140>TOTAL</td>
      </tr>
     </table>
     <table border=0 cellpadding=0 cellspacing=0 width=680>"
;

$i=1;
$totaltotal0;
foreach(
$_POST["cantidad"] as $cantidad){
    
$total $_POST["total"][$i];
    
$totaltotal $totaltotal+$total;
    
$cuerpo .="<tr>
       <td width=80>"
.$_POST["cantidad"][$i]."</td>
       <td width=100>"
.$_POST["item"][$i]."</td>
       <td width=220>"
.$_POST["articulo"][$i]."</td>
       <td width=140>"
.$_POST["valor"][$i]."</td>
       <td width=140>"
.$total."</td>
      </tr>"
;
    
$i++;
}
     
$cuerpo .= "</table>
     <table border=0 cellpadding=0 cellspacing=0 width=680>
      <TR>
       <td width=140 align=center>
         TOTAL:
       </td>
       <td align=center width=140>
            "
.$totaltotal."
       </td>
      </tr>
     </table>
   </td>
  </tr>
</table>
</td></tr></table>
</BODY>
</HTML>"
;

$accion mail($mail$asunto$cuerpo,$headers);
?>
__________________
oohh... quisiera ser godines!!!