[[!FormIt? &hooks=`yourHook`]]
$fields = $scriptProperties['fields']; // get $fields from formit (post-validation) ...and all your processing code...
What oori posted will help you on the FormIt side.
Before I dive into coding more than it takes:
I’d like to implement an additional handler for FormIt, to save certain data from a form to the database.
Based on the information I found so far it seems that I’d have to implement a complete package to get what I want.
Or is there a shortcut?
$xpdo->query('UPDATE `my_table_name` SET `field` = "value"');
$rowCountAffected = $xpdo->exec('UPDATE `my_table_name` SET `field` = "value"');
echo $rowCountAffected.' rows affected.';