Forum Moderators: coopster
***********CODE I NEED TO IMPLEMENT:
$i = 1;
do
{
echo"Firm:"; if(isset($_SESSION['5b_firm_'.$i])){echo $_SESSION['5b_firm_'.$i];}
$i++;
}
while ($i <= $_SESSION['amount_of_additional_counsels']);
***********MY MAIL() CODE:
$body = "Date Ordered: $ordered";
mail ("orders@example.com", "Order - Example", $body, "From: " . $from . "\n");
Please help me. Thank you.
$i = 1;
$firm_html = '';
do
{
$firm_html .= "Firm:"; if(isset($_SESSION['5b_firm_'.$i])){$firm_html .= $_SESSION['5b_firm_'.$i];}
$i++;
}
while ($i <= $_SESSION['amount_of_additional_counsels']);
echo $firm_html; // this outputs it with the rest of the HTML
$body = "Date Ordered: $ordered";
mail ("orders@example.com", "Order - Example", $body . $firm_html, "From: " . $from . "\n"); // adding it here also outputs it with the email