SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Processing Script

    Is it possible to have a form that sends and email to both the form filler and the site administrator or email on file, and also takes the inputted information and submits that to a PayPal form page?

    Basically I am setting up a membership area for people to pay yearly dues.

    Any thoughts would be appreciated.

    Here is an example

    http://net.tutsplus.com/tutorials/ht...-payment-form/

  2. #2
    SitePoint Zealot Kayarc's Avatar
    Join Date
    Sep 2009
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NolaKeith View Post
    Is it possible to have a form that sends and email to both the form filler and the site administrator or email on file, and also takes the inputted information and submits that to a PayPal form page?

    Basically I am setting up a membership area for people to pay yearly dues.

    Any thoughts would be appreciated.

    Here is an example

    http://net.tutsplus.com/tutorials/ht...-payment-form/
    Process $_POST data and then mail as needed. I'm not sure how Paypal wants you to send data but you may also find cURL helpful in this case.
    Phoenix Arizona Web Design | info *at* kayarc.com | 602.633.2676

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I probably should have mentioned I am new to PHP programming. I've got a few mail scripts running, but nothing complex.

    The reason for the PayPal is so members can fill out the form, have that information be emailed to the membership director, and then after hitting submit the user is taken to the PayPal form to pay membership.

  4. #4
    SitePoint Zealot Kayarc's Avatar
    Join Date
    Sep 2009
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NolaKeith View Post
    I probably should have mentioned I am new to PHP programming. I've got a few mail scripts running, but nothing complex.
    It's never too early to get your feet wet. The links I sent should have plenty of discussion about their usage. They are very straightforward.

    When you submit a form with method="post" to process.php, you will get $_POST array on process.php


    Add:
    PHP Code:
    <?php
    print_r
    ($_POST);
    ?>
    to process.php and it will display all of the items in the array.

    the mail function is very straightforward and the only trouble you would run into would be related to server capabilities.
    Phoenix Arizona Web Design | info *at* kayarc.com | 602.633.2676

  5. #5
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I will see what I can figure out.


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
  •