funcion mail() Problemas con envio de datos dinamicos.

index000
13 de Junio del 2005
hola, estoy haciendo q un carrito de compras me envie por mail el pedido con la funcion mail() el problema es que no lee el campo de texto dicha funcion, codigo:
<?php
include("carritoFunction.php");
?>
<?php require_once(db.php'); ?>
<?php
mysql_select_db($database_carrito, $carrito);
$query_Recordset1 = "SELECT nombre, apellido, direccion, zona, telefono, mail FROM data_user ";
$Recordset1 = mysql_query($query_Recordset1, $carrito) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Gracias Por Su Compra</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.link { color: #999999;
text-decoration: underline;
}
.Estilo2 {color: #999999}
-->
</style>
</head>

<body>
<?
if (!$HTTP_POST_VARS){
?><tr>
<td><table width="43%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td align="center" bgcolor="#f4f4f4"><strong><span class="Estilo2">| Gracias por su Compra | </span></strong></td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr bgcolor="#F4F4F4">
<td>Nombre:</td>
<td align="center">Cant.</td>
<td width="66" align="center">Precio</td>
</tr>
<?php
if(isset($_SESSION["carrito"])){
foreach($_SESSION["carrito"] as $producto=>$valor) {
?>
<form method="post" action="carrito_acciones.php">
<tr>
<td width="269">
<input name="producto" type="text" id="producto" OnKeyDown="return false;" value="<?php echo $producto?>" size="35">
</td>
<td width="82" align="center">
<input name="cantidad" type="text" class="Estilo2" id="cantidad" OnKeyDown="return false;" value="<?php echo $valor["cantidad"]?>" size="2">
</td>
<td align="center"><div align="center"><input name="costo" type="text" class="Estilo2" id="costo" OnKeyDown="return false;" value="<?php echo number_format(($valor["costo"]/100)*$valor["cantidad"],2)?>" size="5"2">
</div> </td>
</tr>
</form>
<tr><?php
}
}
?>

<td colspan="2"><div align="right">
Total:</div></td>
<td><div align="center"><input name="total" type="text" id="total" OnKeyDown="return false;" value="<?php echo $total_costo = carrito_CostoTotal();?>" size="5"2">
</div></td>
</tr>
<tr bgcolor="f4f4f4">
<td colspan="3"><div align="center"><strong><span class="Estilo2">| Datos Personales | </span></strong></div></td>
</tr>
<tr bgcolor="f4f4f4">
<td height="215" colspan="3"><table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td width="54%">&nbsp;Nombre: </td>
<td width="46%"><input name="nombre" type="text" id="nombre" style="background-color:#f4f4f4;border-style:groove;width:200px;height:15px " value="<?php echo $row_Recordset1['nombre']; ?>" size="32"></td>
</tr>
<tr>
<td>Apellido</td>
<td><input name="apellido" type="text" id="apellido" style="background-color:#f4f4f4;border-style:groove;width:200px;height:15px " value="<?php echo $row_Recordset1['apellido']; ?>" size="32"></td>
</tr>
<tr>
<td>Direccion:</td>
<td><input name="direccion" type="text" id="direccion" style="background-color:#f4f4f4;border-style:groove;width:200px;height:15px " value="<?php echo $row_Recordset1['direccion']; ?>" size="32"></td>
</tr>
<tr>
<td><p>Zona:</p> </td>
<td><input name="zona" type="text" id="zona" style="background-color:#f4f4f4;border-style:groove;width:200px;height:15px " value="<?php echo $row_Recordset1['zona']; ?>" size="32"></td>
</tr>
<tr>
<td>Telefono:</td>
<td><input name="telefono" type="text" id="telefono" style="background-color:#f4f4f4;border-style:groove;width:200px;height:15px " value="<?php echo $row_Recordset1['telefono']; ?>" size="32"></td>
</tr>
<tr>
<td>Mail:</td>
<td><input name="mail" type="text" id="telefono3" style="background-color:#f4f4f4; border-style:groove; width:200px; height:15px;" value="<?php echo $row_Recordset1['mail']; ?>" size="32"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr bgcolor="#F4F4F4">
<td colspan="3"><div align="right"> | <a href="salir.php" class="link">Salir</a> |</div></td>
</tr>
</table></td>
</tr>
</table></td>

</tr><?
}else{
$cuerpo = "Formulario enviadon";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "n";
$cuerpo .= "Apellido: " . $HTTP_POST_VARS["apellido"] . "n";
$cuerpo .= "Direccion: " . $HTTP_POST_VARS["direccion"] . "n";
$cuerpo .= "Zona: " . $HTTP_POST_VARS["zona"] . "n";
$cuerpo .= "Telefono: " . $HTTP_POST_VARS["telefono"] . "n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["mail"] . "n";
$cuerpo .= "producto: " . $_SESSION["producto"] . "n";
$cuerpo .= "cantidad: " . $_SESSION["cantidad"] . "n";
$cuerpo .= "costo: " . $_SESSION["costo"] . "n";
$cuerpo .= "total: " . $_SESSION["carrito"] . "n";
mail("[email protected]",'"Que lopario', $cuerpo,"From: info@{$_SERVER['mail.cocacola.com']}", "-fwebmaster@{$_SERVER['SERVER_NAME']}");
echo "$cuerpo";
}

?>
</body>
</html>

<?php
mysql_free_result($Recordset1);
?>

Problema: no veo el resultado de las variables: producto, cantidad, costo, carrito.
Q sera?
Gracias a todos los que me ayuden.