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



Form Tools
still having "passing on" problems with thank-you 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: still having "passing on" problems with thank-you page (/showthread.php?tid=1354)



still having "passing on" problems with thank-you page - Peter - Jun 6th, 2011

Hi there,

I've got a multiple-form page based on api and I want to display some fields at the final thank-you page. So I followed the steps described in the documentation to create unique_field and assured to enable "pass on" fields. I also created a new view to select the desired fields-data for the thank-you page. Everything works fine except that on thank-you page no data will be displayed. But if I manually add "thanks.php?submission_id=submissionID&unique_key=uniqueID" then it works. I also tried this advice you can find on http://forums.formtools.org/showthread.php?tid=598&pid=4224#pid4224 but without success.

Have anybody suggestions to solve the problem?

-Steve


here a the relevant parts of my code

last page before thank-you-page, form-step3.php:

PHP Code:
require_once("../ft/global/api/api.php");

  
$fields ft_api_init_form_page();

   
$submission_id $fields["form_tools_submission_id"];
   
$unique_key    $fields["unique_key"];

  
$params = array(
    
"submit_button" => "finalize",
    
"next_page" => "thanks.php",
    
"form_data" => $_POST,
    
"file_data" => $_FILES,
    
"finalize" => true
      
);
  
ft_api_process_form($params);

?>


thank-you page, thanks.php:

PHP Code:
<?php 
require_once("../ft/global/api/api.php");

$fields ft_api_init_form_page();
ft_api_clear_form_sessions();


?>

<?php
  
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
   {
    
$form_id 1;
    
$view_id 3;
    
$export_type_id 7;
    
$submission_info ft_api_get_submission($form_id$_GET["submission_id"]);
    
// now confirm that the unique_key matches
    
if (isset($submission_info["unique_key"]) && $submission_info["unique_key"] == $_GET["unique_key"])
        {
          
ft_api_show_submission($form_id$view_id$export_type_id$_GET["submission_id"]);
        }    
    }
?>