[Pro] PHP Feedback form and PayPal Button

I have a Form on a site that is used to collect simple information on people that who wish to become club members. Now i want to add the payment option via PayPal, can this be done please?

Thx

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Now i want to add the payment option via PayPal, can this be done please?

If you just want them to pay for membership then you can use a PayPal button and require that they enter certain info on PayPal (or Mals if you want to use them)

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

David,

Thank you for your response, my issue is that i want to integrate the payment with the PHP Feedback form ie i need the email info from the Feedback form and then i want the visitor to select the appropriate option on the payPal button. which would then issue a combined email to a nominated recipient …

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s going to be difficult to do in “vanilla” PHPFF. What you will need to do is use the Action to generate the form handler, then open that handler in a text editor and rewrite it to pass along the information you need to the Thanks page. Once you do this, you’ll need to remove the Action from the page, and manually configure the form setup to use the modified handler.

The way it usually works, PHPFF doesn’t pass any variables back to the Thanks page, and that page doesn’t have to be anything special – it’s just an HTML page with a static message on it. If you want to send the e-mail address along with the request for the thanks page, you’ll need to make that thanks page a .php page also, and you’ll need to find the variable that carries the validated e-mail address within the handler script, and add it to the address that the handler redirects to.

You’ll be looking for something that looks like this:

header('Location: thanks.html');
exit;

You’ll want to change that to something along these lines:

header('Location: thanks.php?email=' . $theEmailVariable);
exit;

Note that this change to a .php thanks page is needed so you can do something meaningful with the email variable you pass to it.

Then in your Thanks page, you’ll need to add a blob of code at the top of the page (in the Before HTML section of the Page / HTML Markup dialog) like this:

<?php $email = (isset($_GET['email'])) ? $_GET['email'] : ''; ?>

Once you’ve done that, you’ll need to alter your PayPal form code to include that value in a hidden form field. Inside the PayPal form, add this:

<input type="hidden" name="email" value="<?= $email ?>" />

That injects the value of the $email variable into the form, and assuming that the PayPal form wants a field named ‘email’, that should be all you need to get that info into the purchase form.

Walter

On Oct 2, 2012, at 6:11 PM, ejw wrote:

David,

Thank you for your response, my issue is that i want to integrate the payment with the PHP Feedback form ie i need the email info from the Feedback form and then i want the visitor to select the appropriate option on the payPal button. which would then issue a combined email to a nominated recipient …

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What about something like this http://www.deltadesign.co/fw_examples/register.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I hit send before I qualified it with saying that it doesn’t generate an email back to the registrant but…

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter/David,

The registration Form data i need to collect is a little more than i initially explained. The form is at http://www.glandoreyc.com/clubmembership.php
The way that PayPal has been set up is that it included three payment options, the same three options that are in the form, they are Family, Junior and Single.

Walter, i think i understand what you are saying but need time to fully digest it.

It seems i may have to move to a solution using Mals Shopping cart and then see how to integrate the the registration form requirements.

thx

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options