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
API Submission If Statement
#1
Is it possible to wrap the submission via API around an if statement? Please see example below.

//payment successful
if ($charge->paid == 1) {

//submit to form tools
$fields = ft_api_init_form_page(9);
$params = array(
"submit_button" => "submit",
"next_page" => "thankyou.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)