PHP Form - To email & PayPal?

Discussion in 'PHP' started by pcoulter, Sep 6, 2007.

  1. #1
    I have a PHP form that send the contents to my e-mail. How can I set it up such that once the form is submitted, the customer is taken to PayPal to purchase an item, just as if they'd hit the "Pay Now" button?

    Thanks!
     
    pcoulter, Sep 6, 2007 IP
  2. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    If you hover over the pay now button it will come up as a url in the bottome left of your browser.


    You can then send your mail


    and then use

    header("location:theurlofwhatthebuynowbuttonis");

    Thanks
     
    liam1412, Sep 6, 2007 IP
  3. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Oh I just realised are you wanting to send the data from the form to paypal????
     
    liam1412, Sep 6, 2007 IP
  4. pcoulter

    pcoulter Active Member

    Messages:
    279
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    78
    #4
    I need to send one variable to PayPal so that I will know which payment matches each registration submission (in case the payment name is different).

    Thanks.
     
    pcoulter, Sep 10, 2007 IP
  5. stats

    stats Well-Known Member

    Messages:
    586
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    stats, Sep 11, 2007 IP