The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Can't add form using API (Step 3) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Can't add form using API (Step 3) (/showthread.php?tid=496) |
Can't add form using API (Step 3) - pieman - Feb 5th, 2010 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 RE: Can't add form using API (Step 3) - Ben - Feb 6th, 2010 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( Hope this helps! - Ben |