/    Sign up×
Community /Pin to ProfileBookmark

php Order form – auto reply

Hello Everyone,

I need some help with an order form..I would really apriciate if anyone can help me out.

Currently I have an order form which does the following:
– visitors enter their information and select from dropdown the menu..
– I’m able to recive a copy of that order to my email

>

However, my visitors are requesting the menu to see what they ordered..and thats where I’m loosing time having to forward my emails manually.

What do I need to do to send a copy of what they entered in the order form to the visitor and to myself?

====================

basic order form:
————

Name:
Email:

Manu: option 1/ option 2
———————–


Send
=======================

Thank You!!!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@hastxOct 27.2009 — If it is already sending you a copy, just send them one at the same time...you can put two email addresses in the first arguement to the mail function:

[code=php]
$my_email = "[email protected]";
$his_email = $_POST['email'];
...
$to = $my_email;
$to.= ", $his_email";
...

mail($to,$subj,$msg);
[/code]


You should also keep a copy of the order on your web server incase there are email troubles. I would think about having the script create an html file of the order ...this gives you a screen that shows the order, but you can also attach or embed that same file to the email. It gives a professional look when the recipient receives an html "receipt" in their email.
Copy linkTweet thisAlerts:
@n1mauthorOct 27.2009 — WOW! it's working now just fine. I was missing the 3 lines $his_email...$to.=...

I really do appreciate your help!



[code=php]
$my_email = "[email protected]";
$his_email = $_POST['email'];
...
$to = $my_email;
$to.= ", $his_email";
...

mail($to,$subj,$msg);
[/code]
[/QUOTE]
×

Success!

Help @n1m spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...