The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
List the fields submitted on the thankyou page when submitting through PayPal? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: List the fields submitted on the thankyou page when submitting through PayPal? (/showthread.php?tid=491)



List the fields submitted on the thankyou page when submitting through PayPal? - gediweb - Feb 3rd, 2010

I have a PayPal enabled registration form. Can I display a "receipt" on the thankyou page, in other words, the fields that they submitted after they return from PayPal?


RE: List the fields submitted on the thankyou page when submitting through PayPal? - Ben - Feb 3rd, 2010

Sure! Here's how it would work.

First off, not everyone that pays via PayPal clicks the "Return to merchant", so this would only be relevant for those users that do. If memory serves, there's a setting with the PayPal integration script called "custom" that is used to pass the unique submission ID to PayPal. The neat thing about that variable is that PayPal is nice enough to pass it BACK. And that's all you need to locate and display the info that's been stored in Form Tools for that submission.

What you can do is use the Form Tools API on your receipt page and use the ft_api_show_submission function to display the data.

But this raises security concerns... any hacker worth his mettle can fool a POST request from a particular source, so if you were worried about security you'd need to perhaps check sessions prior to displaying the information to ensure that the person submitting the form was the same one at the receipt page. Ah, HTTP...

Sorry for the rather high-level advice. Ideally, you'd have a programmer stashed away in a closet somewhere that could take this on... I won't fib, it is a little fiddly.

- Ben


RE: List the fields submitted on the thankyou page when submitting through PayPal? - gediweb - Feb 4th, 2010

Right now I'm pressed on time, so I'll deal with the hacking issue after... I got the ft_api_show_submission working somewhat. I got it to display a submission, but I had to input a submission number. What I'd like, is for it to pass the actual submission_id. What is the code to display that? Am I missing something in the docs?


RE: List the fields submitted on the thankyou page when submitting through PayPal? - gediweb - Feb 4th, 2010

I tried to follow the paypal demo example showing the submitted fields, but cant get the fields to show.

I also found this post: http://forums.formtools.org/showthread.php?tid=468&highlight=show+fields

And what I have now, is a thank you page with ALL the submissions separated by: - new page -

At the top of the page, I have an error: "Notice: Undefined variable: submission_id in /home/ex/public_html/register/thankyou.php on line 110"

and where I wanted my info to show, Still shows: {$ANSWER_Make}

What am I doing wrong? I have the code in there:

Quote:if (isset($_GET["submission_id"]) && is_numeric($_GET["submission_id"])) {
$submission_id = $_GET["submission_id"];
ft_api_show_submission(2, 2, 3, $submission_id);
}



RE: List the fields submitted on the thankyou page when submitting through PayPal? - Ben - Feb 6th, 2010

Hi Gediweb,

I know I just emailed you, but I thought I'd make a comment to close this thread. I got it all set up on your server - it worked just described!

The one thing you really need to know is that PayPal sends back the unique Form Tools submission ID in the $_POST["custom"] key. So we needed to extract that value to pass to the ft_api_show_submission() function.

All the best!

- Ben


RE: List the fields submitted on the thankyou page when submitting through PayPal? - gediweb - Feb 8th, 2010

You're the best!