Hi,
I have the following code, which has several $_SESSION variables set it it:
?>
<tr>
<td class="bodyText">
<p>Your order will be placed for : <span class="style9"><?php echo $_SESSION['Menu_Date']; ?></span></p>
<p>Order for : <span class="style9"><?php echo $_SESSION['Name']; ?></span></p>
<p>Contact info : <span class="style9"><?php echo $_SESSION['E_Mail']; ?> <?php echo $_SESSION['Phone_Number']; ?></span></p>
<p>Menu Item
: <span class="style9"><?php echo $_SESSION['Menu_Item']; ?></span></p>
<p>Number of Servings: <span class="style9"><?php echo $_SESSION['Servings']; ?></span></p>
<p>Number of Keiki Servings: <span class="style9"><?php echo $_SESSION['Keiki_Servings']; ?></span></p>
<p>Subtotal: <span class="style9">$<?php echo $_SESSION['subtotal']; ?></span></p>
<p>Tax: <span class="style9">$<?php echo $_SESSION['tax']; ?></span></p>
<p>Total Due at Pick Up: <span class="style9">$<?php echo $_SESSION['total_due']; ?></span></p>
<p>Estimated Pick Up Time: <span class="style9"><?php echo $_SESSION['Pick_up_Time']; ?></span></p>
<form method="post" action="thank_you.php">
<label>
<input type="submit" name="Confirm" id="Confirm" value="Confirm" />
</label>
</form>
When a user hits the "Confirm" button, I would like to send an email with the values of those variables in it. In addition, I would like to have the body be something like this:
Name : <value from $SESSION['Name']>
.
.
.
Total Due : <value from $SESSION['total_due']>
I understand how to use mail() to construct an email, but I don't get how to put this information into the body. Any help or suggestions would be greatly appreciated.
Thanks!
Mark