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
Status Check [SOLVED] - 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: Status Check [SOLVED] (/showthread.php?tid=310)



Status Check [SOLVED] - codezpecg - Sep 29th, 2009

I am witting a status check using ft_api_show_submission, but can't seem to figure out how to pass a value in.

On one page I have a input box that submits "status" variable.

Second page that displays the submission I have like this:

<?php
include("global.inc.php");
require_once("/var/www/apache2-default/ssl/global/api/api.php");
$searchterm = $_POST['status'];

ft_api_show_submission(10, 15, $searchterm , 155);
?>

I am basically trying to get the number user submits inside the ft_api_show_submission so it will display the record using number they submitted.

When I use it like above I get error

ERROR
Error Type: User
Error Code: #401 — Learn more about this error.

The form ID passed to the ft_api_show_submissions function is invalid.

Any ideas on how to make this work?
I just figured out how to do it here is the solution:

On page you want to display the status use this:

<?php
include("global.inc.php");
require_once("/var/www/apache2-default/ssl/global/api/api.php");
$searchterm = $_POST['status'];
$options = array(
"submission_ids" => $searchterm
);

ft_api_show_submission(3, 1, 1, $options);
?>

Works like a charm!