Question
March 24, 2008 at 09:40 AM
businessman2

PHP order form help needed

by businessman2 . Updated 18 years, 4 months ago

Good Day all,

I am new to PHP and I am trying to integrate it with an HTML order form mixed with Javascript which calculates the order as the user clicks on additional boxes.

I want the PHP to send out 2 emails and produce an HTML page of the order with just what was ordered. For instance, if there are 15 items available but the customer only wants 3 I want the page and both email to only state what the customer ordered. I have my code thus far stated below:
[code]


Email: $email
Name: $name
Phone Number: $number
Delivery Date: $month, $date, $year
Delivery Time: $hour, $minute, $meridian
Address: $address, $addressTwo
City: $city
State: $state
Zip: $zip
Special Instructions: $comment
EOD;

$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($to, $emailSubject, $body, $headers);
$confirmation = mail($email,$emailSubject,$body);

/* Results render as HTML */

$results = <<

Your Order Confirmation

Thank you for your order! A confirmation will be sent to the email provided momentarily.

This discussion is locked

All Comments