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
Can't add form using API (Step 3)
#1
I installed FT okay but when I try to add a form using the api option and submit a test submission, the php form page just refreshes instead of loading the thank you page. If I click the refresh button in step 3 of FT admin it says that it hasn't yet received a submission.

I've added all the php code to the beginning of both php files (form page and thank you page) and inserted the code given in step 3.

Any ideas why this is happening?

Thanks
Reply
#2
Hey pieman,

Ah! Any time the page just appears to refresh & nothing happens it generally means that you haven't not passing along the submit button's name attribute to the ft_api_process_form() function.

In your form, find for the name="" attribute of your submit button. If it doesn't have one, add it and give it a value like name="mysubmit".

Then, at the top of your form, check that the "submit_button" parameter contains that same value:

PHP Code:
$params = array(
  
"submit_button" => "mysubmit",
  
"next_page" => "thanks.php",
  
"form_data" => $_POST,
  
"file_data" => $_FILES,
  
"finalize" => true
    
);
ft_api_process_form($params); 

Hope this helps!

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)