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



Form Tools
Can't add form using API (Step 3) - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Can't add form using API (Step 3) (/showthread.php?tid=504)



Can't add form using API (Step 3) - bageur - Feb 9th, 2010

I have installed FT2 and none of my test submission receive.
I read the tutorial and put this code on my index.php :
PHP Code:
<?php
require_once("/home/inong/ads/global/api/api.php");
$fields ft_api_init_form_page(2"initialize");
$params = array(
  
"submit_button" => "mysubmit",
  
"next_page" => "thanks.php",
  
"form_data" => $_POST,
  
"file_data" => $_FILES,
  
"finalize" => true
    
);
ft_api_process_form($params);

?>
and my thanks.php :
PHP Code:
<?php
require_once("/home/inong/ads/global/api/api.php");
$fields ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
FT says everytime I click the "Refresh Page" button "Form Tools hasn't received a successful test submission yet."

Any suggestions what could be wrong? Help is very appreciated :-)
Thanks!


RE: Can't add form using API (Step 3) - largerabbit - Feb 10th, 2010

Hi there,

Have you made sure your submit button has the name "mysubmit" (from your code above) ? I had the same problem that was caused by not naming the button properly.

Cheers.