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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't add form using API (Step 3)
#1
I have installed FT2 and none of my test submission receive.
I read the tutorial and put this code on my index.php :
PHP Code:
<?php
require_once("/home/inong/ads/global/api/api.php");
$fields ft_api_init_form_page(2"initialize");
$params = array(
  
"submit_button" => "mysubmit",
  
"next_page" => "thanks.php",
  
"form_data" => $_POST,
  
"file_data" => $_FILES,
  
"finalize" => true
    
);
ft_api_process_form($params);

?>
and my thanks.php :
PHP Code:
<?php
require_once("/home/inong/ads/global/api/api.php");
$fields ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
FT says everytime I click the "Refresh Page" button "Form Tools hasn't received a successful test submission yet."

Any suggestions what could be wrong? Help is very appreciated :-)
Thanks!
Reply
#2
Hi there,

Have you made sure your submit button has the name "mysubmit" (from your code above) ? I had the same problem that was caused by not naming the button properly.

Cheers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)