Forums

PHP

This topic is locked

php mail() variables embedded in html

Posted 06 Jan 2006 01:52:52
1
has voted
06 Jan 2006 01:52:52 James Mr. posted:
Hello,

We are trying to setup a way to email a customer confirmation. When an order comes in, we verify all needed information is there, then we send a confirmation. I would like to do it via php/html so that we can have a template that matches www.showprints.com .

What needs to be included
Email To:
Customer Name:
Subject:
Order Tracking Number:
Online Order Number:
Date Due:
Time Due (All Times Eastern):
Pickup Location: (would like this to be a dropdown, choices being Harmons of Westgate Harmons of Millhopper Flair Pro Color Lab and Mail Order

I have the form setup assigning all the variables"confirm.htm", as well as the html file that I want the customer to see (with variables put in where they belong) which is called "confirm_formatted.htm". Confirm_formatted is just an example of how it should look, "confirm.php" is the actual script to send the file.

I basically want to plug my varibales in random places in the HTML.

http://www.showprints.com/files/To%20Post%20for%20help.rar
Above is the link to an RAR file containing all 3 files stated above.

Can someone please show me how to-
1- Upon Completion, post the sent information via the browser used to complete the form, with no graphics (I can do that I believe).
2- Have all the variables plugged into the message body in the format shown in "confirm_formatted.htm" (THIS IS MAINLY WHAT I NEED!)
3- BCC CC, or whatevers easiest way to send a copy to the graphical version that the customer recieved. (I can do that, not a big deal once html has variables embedded.)

Your help is much appreciated.

Reply to this topic