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
Hitting The Api Via A URI...How Do I Know The Session Completed? - 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: Hitting The Api Via A URI...How Do I Know The Session Completed? (/showthread.php?tid=2540)



Hitting The Api Via A URI...How Do I Know The Session Completed? - jrandell - Jul 24th, 2013

I am almost to where I want to be with Form Tools (Thanks again for the fantastic script!).

The master plan is to submit data from an app with considerable limitations.
(a FileMaker runtime - jdbc is disabled when you compile an fm runtime - all I can do is send data via a uri)

I can successfully insert the data to Form Tools with this:
http://Domain.com/formtools/global/posforms/posformapi.php?email=TheValue&comments=TheValue&submit_button=Submit Form

I have 3 functions I can use to get the results:
GetLastError; HTTP_Response_Code; HTTP_Response_Headers

My question is, can I tell from the returned information, or in any other way, that the session closed properly and the script ran successfully?
Here is a real result:
GetLastError= 0
HTTP_Response_Code= 302
HTTP_Response_Headers=
{HTTP/1.1 302 Moved Temporarily
Date: Wed, 24 Jul 2013 18:51:31 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Cache-control: private
Set-Cookie: PHPSESSID=ugtpirdos5eb5bd0a057cp8cp6; path=/
location: /formtools/global/posforms/posresult.php
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8}

Also, since I have multiple forms submitted by multiple clients simultaneously (less then 30).
I wounder is a name space is in order. Again, I don't know how to test or monitor this.

The following successfully submits to the db, (am I being too clever for my own good trying to use a parameter?)

<?php
require_once("/home2/acct/public_html/domain/formtools/global/api/api.php");
$namespace = "form10";
$fields = ft_api_init_form_page(10, "live", $namespace);
$params = array(
"submit_button" => "submit_button",
"next_page" => "/formtools/global/posforms/posresult.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true,
"namespace" => $namespace
);
ft_api_process_form($params);
?>

Thanks,
-Jim


RE: Hitting The Api Via A URI...How Do I Know The Session Completed? - jrandell - Jul 26th, 2013

Anyone?
Was the request to broad?
Many apologies if I made a posting faux pas!