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
multi-page form don't work - 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: multi-page form don't work (/showthread.php?tid=2996)



multi-page form don't work - nooneelse - Apr 21st, 2014

hi
i'm tring to step up multi step form using For tolls but i doesn't work,
when i submit the first page i just have a blanc page

fist step : form_first.php
PHP Code:
<?php
require_once("mypath/formtools/global/api/api.php");
$fields ft_api_init_form_page(1"initialize");
$params = array(
  
"submit_button" => "sbmt",
  
"next_page" => "form_second.php",
  
"form_data" => $_POST
    
);
ft_api_process_form($params);
?><!DOCTYPE html>
<head>   
</head>
<body>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" name="form">
<label>input 1</label>
<input name="input_1" type="text" >
<label>input 2</label>
<input name="input_2" type="text" >
<input type="submit" name="sbmt"  class="btnvalid" value="go">
</form>
</body>
</html> 


second step : form_second.php
PHP Code:
<?php
require_once("mypath/formtools/global/api/api.php");
$fields ft_api_init_form_page();
$params = array(
  
"submit_button" => "sbmtsecond",
   
"next_page" => "thanks.php",
  
"form_data" => $_POST,
  
"no_sessions_url" => "form_first.php",
  
"finalize" => true
    
);
ft_api_process_form($params);
?><!DOCTYPE html>
<head>   
</head>
<body>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" name="form">
<label>input 3</label>
<input name="input_3" type="text" >
<label>input 4</label>
<input name="input_4" type="text" >
<input type="submit" name="sbmtsecond"  class="btnvalid" value="finish">
</form>
</body>
</html> 

last page : thanks.php
PHP Code:
<?php
require_once("mypath/formtools/global/api/api.php");
$fields ft_api_init_form_page();
print_r($fields);
ft_api_clear_form_sessions();
?>
thank you !!