I have created an online gift certificate order from.
I have an html to allow user to create order,
and two php pages to:

  1. display order back to browser window,and
  2. send email with order info to restaurant owner and myself
    and redirect to thanks.htm page.

I cannot get the order details to display in the e-mail message.
This happens despite my coding the quantity variables as
{$_POST['totalqty']} and {$_POST['totalamount']}.

Anyway, can anyone help me?
Here is my code...


if ($_POST['radio_group_1'] == 'A')
$mail_msg = "
Porters Restuarant Gift Certificate Order Form\n
Customer has ordered $_POST['twofiveqty']} gift certificates for ${$_POST['totalamount']}. \n


$mail_msg = "Porters Restuarant Gift Certificate Order Form\n\n";
$mail_msg .= "Customer has ordered {$_POST['twofiveqty']} gift certificates for ${$_POST['totalamount']}.\n\n";

$name = "Tom Fitzsimmons";
$email = "t4632@erieinsurance.com";
$subject = "Porter's Gift Certificate Order";
  mail( "cookies@micro-link.net,psutom@micro-link.net", $subject, 
    $mail_msg, "From: $name <$email>" );
  header( "Location: http://www.portersrestaurant.net/thanks.htm" );

<title>Porter's Restaurant</title>

a { text-decoration: none; color: #0000FF; }

<script language="JavaScript">
function turnOn(currentLink) {
    currentLink.style.color = "#990000";
    currentLink.style.textDecoration = "underline";

function turnOff(currentLink) {
    currentLink.style.color = "#0000FF";
    currentLink.style.textDecoration = "none";

<body bgcolor="#f5f5f5" link="#000033" vlink="#000033" alink="#000033" background="MarbleB2.jpg">

<table border="0" width="60%" align="center">
        <td><center><a href="about.htm" style="color:#483d8b"
                     onmouseover="this.style.fontWeight='bold';" onmouseout="this.style.fontWeight='normal';">About Us</a></center></td>
        <td><center><font color="#483d8b">|</font></center></td>
        <td><center><a href="mailto:cookies@micro-link.net?subject=Porter's Restaurant"  style="color:#483d8b"
                     onmouseover="this.style.fontWeight='bold';" onmouseout="this.style.fontWeight='normal';">E-mail
        <td><center><font color="#483d8b">|</font></td>
        <td><center><font color="#483d8b"><a href="menu.htm" style="color:#483d8b"
                     onmouseover="this.style.fontWeight='bold';" onmouseout="this.style.fontWeight='normal';">
        <td><center><font color="#483d8b">|</font></td>
        <td><center><a href="index.html" style="color:#483d8b" onmouseover="this.style.fontWeight='bold';" 
        <td><center><font color="#483d8b">|</font></td>
       <td><center><a href="banquets.htm" style="color:#483d8b"
                     onmouseover="this.style.fontWeight='bold';" onmouseout="this.style.fontWeight='normal';">
<table border="0" width="65%" cols="1" align="center">
<td align="center">
<img src="Porters_Logo.jpg" alt="Porter's Restaurant" border="0" width="132" height="124">
<table align="center">
<h3>Sorry you have cancelled your order.</h3>
<td align="center"><a href="index.html"><h4>HOME</h4></a></td>

<p align="center"><FONT COLOR="#483d8b" SIZE=-1>
Contents ©2004 &nbsp; < Porters Restaurant, Inc. > &nbsp;All rights reserved.



Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.