FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status Check [SOLVED]
#1
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)