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