The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Problem, error #100 - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Problem, error #100 (/showthread.php?tid=463) |
Problem, error #100 - Sioux - Jan 27th, 2010 Hi. I'm trying to add single-page form with the API. I correctly have done step 1 and step 2. According to step 3 I add this code to my form.php PHP Code: $fields = ft_api_init_form_page(1, "initialize"); Quote:After saving, go to your "thankyou" page in your browser to ensure that sessions have been deleted, then go back to your form. Here, fill in every field in your form and click submit. You should see something like the screenshot.But after submit I get Error Code: #100: Quote:This occurs when trying to initialize a form. It usually means you're sending along an incorrect form ID.I had just installed Formtools, it's my first form, so ID must be 1. I haven't any other form. So what's wrong? How can I fix it? RE: Problem, error #100 - axel - Jan 30th, 2010 Have you setup the form yet in Form Tools? As in going though the "New Form" process and selecting Code Submission. It gives you the directions from there. http://[yourformtools]/admin/forms/add/step1.php?add If you haven't done that, Form Tools has no idea what it's getting. RE: Problem, error #100 - Sioux - Feb 1st, 2010 Sure. I've done this: Quote: Log into Form Tools (as the administrator) and on the Forms page, click on "Add Form". Continue to step 3 and click on the second "Code" option. There, it will have generated a line of PHP which looks like this (X will be your form number): I got this code: PHP Code: $fields = ft_api_init_form_page(1, "initialize"); So... RE: Problem, error #100 - axel - Feb 1st, 2010 Now that's just plain weird. When you are setting up Form Tools and getting API error 100, you've got some other problem going on with Form Tools or your code. I'd have to see what's going on in your Form Tools and your Form to make any sense of that. If you'd like, you can email me at r.wright@aurohack.com with your Form Tools Login, where your FT address, and temporary FTP access and I can help you from there. RE: Problem, error #100 - Sioux - Feb 2nd, 2010 Thanks for help. Unfortunately, at this moment I have some controversy with my hosting company, and I can’t access to my account. When I solve this problem, I’ll try FT 2.0 Final, and if this error occurs again, I’ll contact with you. |