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/posfo...ton=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
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/posfo...ton=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