The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
How to update API submissions? - 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: How to update API submissions? (/showthread.php?tid=718)



How to update API submissions? - prometheus - May 26th, 2010

Greetings!

I have this sneaking suspicion I've seen the code to do this before, but now all of a sudden can't locate anything in documentation or the forums (after over an hour of searching).

I suppose this could be accomplished using a multi-page form, but I have it set up a little different. I want the user to be able to submit the real estate property information in step 1 (address, location, description, etc), and then submit+finalize the form and forward to step 2 where they upload pictures, then step 3 where they enter descriptions for the pictures. If they don't have pictures available yet, I want them to be able to get the info submitted and into the database at the very least so they can come back (say in a day or two) to upload the pictures and input some picture descriptions.

Here's an overview of what I'm trying to accomplish:
step1.php - form data (they're all text fields) submitted from this page; passes 'SID' and 'FID' in the URL to transfer the submission ID + form tools form ID (respectively) to step2.php....it'd look like this:
$nextpage = step2.php?sid=123&fid=9,

step2.php - pulls sid & fid into page; third-party script uploads pictures to external server and creates an array of the filenames; this page contains a form w/ dynamically-generated hidden text fields from the filenames array; upon submission, the form on this page updates the fields in the same submission ID from step1 above, like 'pic1name', 'pic2name', 'pic3name', etc.; 'SID' and 'FID' are passed in the URL again to step3.php.

step3.php - pulls sid & fid into page; dynamically-generates a page showing the uploaded pictures inside a new form, with fields to input picture descriptions.

My core issue: how can I update the submissions in FormTools? I've figured out pretty much all of the rest of this. I'm sure it's something easy that I completely overlooked.

Thanks for any and all help y'all can provide!

:::prometheus