Can get PHP to send twice

I have created an online store and the shopping cart sends me
an email when a product has been purchased.
I am trying to make the email send to me and the email
address that the customer has included i am using the code below. I
am totally new to php. Please help

Then just do the same thing twice:
<?php
$to = "[email protected]";
$date = date('l dS \of F Y h:i:s A');
$msg = "TGL_Order_GB(1) Order from your site\nName:
".$_POST['name']."\nAddress: ".$_POST['tel']."\nEmail:
".$_POST['email']."\nDetails: ".$_POST['details']."\nDate: $date";
mail($to, "Order", $msg);
$to = "[email protected]";
$date = date('l dS \of F Y h:i:s A');
$msg = "TGL_Order_GB(1) Order from your site\nName:
".$_POST['name']."\nAddress: ".$_POST['tel']."\nEmail:
".$_POST['email']."\nDetails: ".$_POST['details']."\nDate: $date";
mail($to, "Order", $msg);
echo "code=ok";
?>

Similar Messages

  • When do IOS5 come out? My headphones broke so is there a way i can get yall to send me new ones. mine just stopped working.

    when do IOS5 come out? My headphones broke so is there a way i can get yall to send me new ones. mine just stopped working.

    Ios 5 comes out Wednesday.
    We are iphone users just like you.  We can send you nothing.
    The headphones are covered by the same warranty as the iphone.  You could contact Apple and get them replaced, if they are defective.

  • Can get iMessage to send on Mac but not on iPad 2?

    I've tried the dns fix, signing in and out, resetting network settings, resetting settings, unchecked email accounts other then my apple id and still I can't send messages on my iPad 2.. It works on my mac but doesn't seem to be syncing to my iPad or anything.. Any ideas?

    Try this support article > iCloud: Troubleshooting creating backups
    I set up the iPad first, could that have caused a problem?
    Shouldn't make any difference.

  • I can get email, but can not send it.

    I'm having the same problem that a lot of people are. My personal email will go to my phone, but I can not reply or send an email from my phone. I had a blackberry before and never had any problems with it. It is a POP3 email, I entered all the servers and ports, and still can get it to send. I checked with clearwire, they couldn't help. Can anyone help me fix this? If not the phone is getting returned and a new blackberry in it's place. Thanks for any and all help.

    NJJoe- Here is the incoming & outgoing server for AOL. 
    Incoming Server: 
    IMAP:
    imap.aol.com
    port: 143
    Outgoing Server:
    smtp.aol.com
    port 587
    dsuttonva- Here is the incoming & outgoing server for Cox. 
    Incoming Server:
    State POP3 Server CT, FL, GA, ID, KS, LA, NE,
    NV, OH, RI, VA
     pop.east.cox.net AZ, CA pop.west.cox.net
    Outgoing Server:
    State SMTP Server CT, FL, GA, ID, KS, LA, NE,
    NV, OH, RI, VA
    smtp.east.cox.net AZ, CA smtp.west.cox.net
    **For smartphones: incoming port: 995
    outgoing port: 587

  • I can get my email from the iCloud website, but my password won't work on my home computer to receive and send email

    When I open my email on my home computer, I can't receive or send email that is @mac based. I get a message that my passwork is invalid.  When I go to the iCloud website, my password works just fine.  Any clues?

    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. Can someone help me?

    So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. I am getting quite annoyed because apples hours arent the best fitted to my scedule since I have school and work, so I cant call and ask how to get fixed. Please help me all I want to do is buy some music...

    Click here and fill out the form.
    (90729)

  • I need help with Apple iCloud verification. I don't have the email and I can't figure out how to get Apple to send me a new one.

    So, in order to back up my music and stuff to the cloud I need to verify my Apple ID and I don't have the verification e-mail. If someone out there could help me out by telling me how to get Apple to send another one, or if they can, I would appreciate it alot. Thank you!!!!!

    Apple ID: Associating and verifying email addresses with your Apple ID

  • TS3276 When I send an email no matter how small it now seems to take a much longer time than usual (by watching the gear wheel spinning). Anyone have any ideas how I can get my sending back to a much shorter time?

    When I send an email no matter how small it now seems to take a much longer time than usual (by watching the gear wheel spinning). Anyone have any ideas how I can get my sending back to a much shorter time?

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • HT3986 I got a plain macbook (not a pro) that I got on 2010 and I've lost the CD's that came with it, can I still download Windows7? If yes, can someone please send me a link where I can get the windows? Thanks

    I got a plain macbook (not a pro) that I got on 2010 and I've lost the CD's that came with it, can I still download Windows7? If yes, can someone please send me a link where I can get the windows? Thanks

    Thanks stevejobsfan0123 for the reply, I know I have to buy a disk but when I searched for it on amazon I read many reviews about saying that either it is inadequate or that it's a scam. Do you know any website where I can get a legitimate disk of windows7?

  • Can't get PHP's mail() function to work on local Apache install

    I'm using Leopard and installed all available updates. I've done a clean install of Leopard, so no Tiger upgrade.
    I've installed the latest stable versions of Apache, PHP and MySql through MacPorts/command line in Leopard. So far so good, everything works except for PHP's mail() function.
    Does anyone know how to get PHP's mail() function to work on my localhost? Searching the web through Google taught me it's impossible to get it to work under Leopard but I find that hard to believe. Can anyone help me out?

    Any help appreciated.

  • Hey I purchased a game addon  points for $4.99 twice anyway I can get a refund for the other accidental purchase?

    I purchased app addon twice anyway I can get a refund of the other miss purchased content?

    Any purchases are final, but try, if the Store will make an exception, if you explain the problem.
    See this link on how to contact the Store:
      How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase

  • Can't get PHP working

    Hi all...
    I'm trying (despeartely) to edit my apache httpd.conf file so that I can switch on PHP on my Mac (OSX 10.5.8). I've tried every link on google for tutorials to get it to work, but I can't get it. I've used all sorts of goofy command line tools from terminal, but none seem to work. And, I can't even locate the file using Spotlight. Eergh. Very frustrating. I work on a PC laptop and have regularly had to install Apache and PHP and I've never had a problem locating either the root directory or any of the conf and ini files I need, but with Mac, everything seems to be hidden or it requires using cryptic command line tools to accomplish what should be a very simple thing.
    Apache is up and running. Localhost serves up the pages I expect and I can and and edit folders in my sites folder without issue. I just can't seem to get PHP working. I don't want to install a utility (like xamp) because I really should have to. I just need to make a small edit to my httpd.conf file in a text editor and I'm baffled as to why this is so difficult.
    And anyone give me good directions or point to a resource that could help?

    Well I just went through setting up Apache for the first time and I tried a few different sets of instructions, before I found a set that was easy to understand.
    This was the easiest most straightforward way that I found.
    Basically you just use textwrangler(or something similar) to open the http.config file located at: +*Macintosh HD:private:etc:apache2:httpd.conf*+
    Then just remove the # pound symbol from the beginning of that line. PHP is now enabled on your Mac.
    You should continue to the next steps to make a copy of your php.ini file as well: but, I haven't found out what I need to do to set this up to my own personal preferences.

  • I use Microsoft XP on my PC, where r my pictures from my iPad? I need to know how to send pictures to Walgreens, etc so I can get them printed. Help please!

    I use Microsoft XP on my PC, where r my pictures from my iPad? I need to know how to send pictures to Walgreens, etc so I can get them printed. Help please!

    I am legally blonde and not very tech savvy, so I don't really know how to do that.  I know ur time is valuable, so could u possibly give me a short tutorial?  I would b very grateful! I use the camera kit to get my pics from my sd card to my iPad and also from my iPhone to my iPad. Had I known I would have this problem, I would not have transferred my pics to my iPad until after I took the sd card and had my pics printed.

  • Within Facebook, I have '6' photo albums.  On my iPad Air or my iPhone 4S, when I go into Photos, select a photo to send to Facebook, I only see '2' Facebook photo albums listed!  Thoughts on how I can get my 'I' devices to recognize all '6' FB albums?

    Within Facebook, I have '6' photo albums.  On my iPad Air or my iPhone 4S, when I go into Photos, select a photo to send to Facebook, I only see '2' Facebook photo albums listed!  Thoughts on how I can get my 'I' devices to recognize all '6' FB albums?

    OMG, I totally did not see the edit button at the top right corner of the Albums window/page.
    Selecting that, then selecting the album BIKE brought up the RED button to the left of the album and ta-da, delete.
    Sometimes I seek so hard I do not see.
    jojoguitar

  • I typed a reply to an email.  It is whirring away but it hasn't sent it.  How can I either retrieve it or get it to send?

    I typed a reply to an email.  It is whirring away but it hasn't sent.  How can I either get it to send or retrieve it?
    Thanks!

    I typed a reply to an email.  It is whirring away but it hasn't sent.  How can I either get it to send or retrieve it?
    Thanks!

Maybe you are looking for