Ver Mensaje Individual
  #25 (permalink)  
Antiguo 28/12/2004, 09:58
Avatar de BLAH !!
BLAH !!
 
Fecha de Ingreso: septiembre-2003
Ubicación: Región Metropolitana, Santiago, Chile
Mensajes: 706
Antigüedad: 20 años, 7 meses
Puntos: 16
mmm... nop para nada

nop ... no me funciona con ese codigo ... de hecho ni siquiera llega el mail
pro intentando de solucionarlo llegue a la conclusion de que este es el que mas se le acerca a la perfeccion

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> 
      <tr> 
       <td width=80> 
"
.$_POST["cantidad"][1].
       </td> 
       <td width=100> 
"
.$_POST["item"][1].
       </td> 
       <td width=220> 
"
.$_POST["articulo"][1].
       </td> 
       <td width=140> 
"
.$_POST["valor"][1].
       </td> 
       <td width=140> 
"
.$_POST["total"][1].
       </td> 
      </tr> 
      <tr> 
       <td width=80> 
"
.$_POST["cantidad"][2].
        </font> 
       </td> 
       <td align=center width=100> 
"
.$_POST["item"][2].
       </td> 
       <td align=center width=220> 
"
.$_POST["articulo"][2].
        </td> 
       <td align=center width=140> 
"
.$_POST["valor"][2].
       </td> 
       <td align=center width=140> 
"
.$_POST["total"][2].
       </td> 
      </tr> 


<!-- ACA SON HASTA EL 20 PUSE 2 PORQUE NO ME ALCANZAN LAS 20 --> 


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


                   <!-- el total es aca -->    "
.$_POST["totaltotal"].";

        </font> 
       </td> 
      </tr> 
     </table> 
   </td> 
  </tr> 
</table> 
</td></tr></table> 


</BODY> 
</HTML>"

$accion mail($mail$asunto$cuerpo,$headers); 
?>



con ese codigo me llega todo ... pero el total total nop ... me sale lo siguiente..

=1; = 0; foreach(Array as Array){ Array = ; Array = ; Array = ; Array = ; = + ; ++; } ;

eso sale donde debe ir el totaltotal

Muchas Gracias.-
Pablo Araya.-
__________________
Adios ...!!!!

Última edición por BLAH !!; 28/12/2004 a las 10:03