The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Error when switching forms - 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: Error when switching forms (/showthread.php?tid=2437)



Error when switching forms - Printline - May 3rd, 2013

Hi' There

I have a strange problem which i need someone to help me with.

I have three external multiple-page forms, all using the API method. They have three seperate ID's (1,2 and 3).

An example which illustrates my problem:

If a user goes to my website and start filling out form 1. He doesn't finish filling in form 1, meaning he doesn't submit. Instead he founds out that he needs to fill out form 2 instead. He closes form 1, and starts filling out form 2 instead. He submits form 2, but somehow the system/browser still thinks he is using form 1, so the system submits what he has filled in, in form 2, as form 1.

It is the same the other way around. Whatever form the user picks first, the system thinks he finishes this form even though the user changes form.

Can anyone tell what can cause this...???

Below is the php code used on the first page of each of the three forms.

PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields ft_api_init_form_page(1);
if (isset(
$_POST['Submit2']))
{
  
$params = array(
    
"submit_button" => "Submit2",
    
"next_page" => "thankyoupage2.php",
    
"form_data" => $_POST,
    
"finalize" => true
  
);
}
else 
{
  
$params = array(
    
"submit_button" => "Submit1",
    
"next_page" => "testformtools2.php",
    
"form_data" => $_POST,
  );
}
ft_api_process_form($params);
?>

PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields ft_api_init_form_page(2);
$params = array(
  
"submit_button" => "Submit1",
  
"next_page" => "customform2.php",
  
"form_data" => $_POST
    
);
ft_api_process_form($params);
?>

PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields ft_api_init_form_page(3);
$params = array(
  
"submit_button" => "Submit1",
  
"next_page" => "stencil1.php",
  
"form_data" => $_POST  
    
);
ft_api_process_form($params);
?>



RE: Error when switching forms - Joe - May 3rd, 2013

Hey there,

Until the user finalizes a form, a session is stored for the form that they initially started filling out. The session needs to be clear before they start filling out the next form.

Typically, the session is cleared in the thank you page: http://docs.formtools.org/tutorials/api_multi_page_form/?page=step3

Cheers,

Joe