The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Can't get the data on receipt page - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Can't get the data on receipt page (/showthread.php?tid=1476) |
Can't get the data on receipt page - cytegi - Jul 23rd, 2011 Hi, Using the API method - but I can't get the data to display on the receipt (thank you) page. I did everything that's on this tutorial http://docs.formtools.org/tutorials/post_forms_redirect_data/ Since the form has about 25 fields, its not possible to use the other method where you check all field values to "pass on" due to character limits on URLs. Here is my code on the form page: PHP Code: <?php Here is the code on receipt / thank you page: before the head section-> PHP Code: <?php ...and in the body... PHP Code: <?php Thanks RE: Can't get the data on receipt page - Ben - Jul 23rd, 2011 Hi cytegi, Ah... I think the problem due to the slightly different way in which the API stores the submission info and how the submission info is passed via the query string for POST forms. That tutorial is for post forms, so even though most of it holds true for the API, you need to make a small tweak. One thing that sticks out is this line: PHP Code: if (isset($fields["submission_id"]) && isset($fields["unique_key"])) I think you'll need to change that to: PHP Code: if (isset($fields["form_tools_submission_id"]) && isset($fields["unique_key"])) The API adds a "form_tools_" prefix to the submission ID & form ID, since they're auto-generated and we don't want them conflicting with other form fields names. You may need to do other tweaks too, but I'd start there. Also, if you run into more trouble, do a print_r($fields); on the receipt page to find out exactly what key-value pairs you have at your disposal. Good luck! - Ben RE: Can't get the data on receipt page - cytegi - Jul 23rd, 2011 Ben, Thanks for helping me out and for formtools! I am still having issues - when I did the print_r, I still got nothing. I then replaced the submission_id with form_tools_submission_id and I get a 406 error, which means that the submission ID parameter is invalid. Please help! I can give you to logins if you would like to see it... (Jul 23rd, 2011, 2:53 PM)Ben Wrote: One thing that sticks out is this line: RE: Can't get the data on receipt page - Ben - Jul 23rd, 2011 Heya, Sure! Just email me your FTP info and the URL of your form (and path, if it's not obvious when I connect via FTP) and I'll take a quick look at it. - Ben RE: Can't get the data on receipt page - cytegi - Jul 24th, 2011 Hey Ben, Thanks for helping me out. I sent you an email with login info... Best. AP RE: Can't get the data on receipt page - Ben - Jul 28th, 2011 Thanks Amod. I know we just spoke over email, but I'll be getting to this today. - Ben RE: Can't get the data on receipt page - lobaluna - May 22nd, 2016 Please, Ben, reply this thread with the results you have for cytegi. I would love to see them because this issue affects me either. |