需要帮助解决消息功能中显示会话变量值的问题是sessions variable values
当用户收到电子邮件时无法在消息上显示?
在消息邮件功能中它只显示变量名称而不显示变量值?
session_start();
if(is_array($_SESSION['product1'])){
$max=count($_SESSION['product1']);
for($i=0; $i<$max; $i++){
$new_product=$_SESSION['product1'][$i];
$new_itemcode=$_SESSION['itemcode3'][$i];
$new_image=$_SESSION['image12'][$i];
$new_sizes=$_SESSION['sizes12'][$i];
$new_price=$_SESSION['price12'][$i];
$message .='<tr>
<td>'.implode ($new_itemcode).'</td>
<td>'.implode ($new_product).'</td>
<td><img src="http://demo.com/admin/'.implode ($new_image).'"
width="150" height="150" /></td>
<td>'.implode ($new_sizes).'</td>
<td>'.implode ($new_price).';$total=$total+implode ($new_price).</td>
<td>'.$total.'</td>
</tr>';
}}
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: Demo.Com<$your_email>\r\n" .
//"Reply-To: $from \r\n" .
"X-Mailer: PHP/" . phpversion();
mail($to, $subject, $message, $headers);
电子邮件演示图片