Index: trunk/bin/fb-cgi.pl
===================================================================
--- trunk/bin/fb-cgi.pl	(revision 2)
+++ trunk/bin/fb-cgi.pl	(revision 7)
@@ -12,16 +12,20 @@
 my $form = $parser->parse($src_file)->build(method => 'POST', params => $q)->form;
 
-if ($form->submitted && $form->validate) {
-    # TODO:
+if (1 or $form->submitted && $form->validate) {
+
     # call storage function
+
     my $plugin = 'DumpParams';
+    
     eval "use $plugin;";
-    
-    if ($plugin->process($q)) {
+    die "Can't use $plugin; $@" if $@;
+    die "Plugin $plugin doesn't know how to process" unless $plugin->can('process');
+
+    # plugin process method should return a true value
+    if ($plugin->process($q, $form)) {
         # show thank you page
-        #print $q->header('text/plain');
-        #print "Thank you for your input!\n"
     } else {
         # there was an error processing the results
+        die "There was an error processing the submission: " . $plugin->error;
     }
     
