Basically what happens is once an order is added its POST variable is converted to a session variable:
<?
foreach($POST as $key => $val)
{
if($val != '')
{
$SESSION[$key] = $val;
}
}
?>
Then a foreach loop outputs the session variables:
foreach($_SESSION as $key => $val)
{ ...etc. }
Any ideas on how to mail these session variables using the mail() function?