SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    Ga
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php email functions help please

    Ok people I have a question. I'm designing a page for a client that allows customers to choose certian options for hosting then it calculates the total price on the next page after they submit. Now on the next page they have the option to either come back and change the options or to continue and order it. Now when they click continue I need it to email my client the results of what they want. I already have it down so that it goes to a certian payment link depending on the total price. But what I'm wondering is how do I make it email him their results and also at the same time send them to the payment page. Thanks
    Cant get away from this computer

  2. #2
    SitePoint Addict
    Join Date
    Apr 2001
    Location
    None
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Enthusiast kcabobert's Avatar
    Join Date
    Aug 2001
    Location
    Topeka, KS
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    mail("client@hisdomain.com""Subject",
                  
    "$emessage \n\n\n I Collected the following information on $theirname: \n $userinf",
                    
    "From: hisdomain.com <webmaster@hisdomain.com>\nX-Mailer: PHP/" phpversion()); 
    Thats what I use (with some modifications.) Then I use $userinf to hold the selectable data (check boxes, or drop menus etc...) and the emessage for notes or what ever. I would just stick this at the top of the page you want to send it (obviously it must collect the data first) so maybe the top of the payment page?

    hope this helps. and the php manual is great btw!
    Microsoft's Motto: Resistance is futile, you will be assimilated.

    My dog's name is Jade; she is a Miniature pinscher.
    Click here to see some of her pictures


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •