- Timestamp:
- 10/06/04 13:44:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/fb-cgi.pl
r1 r7 12 12 my $form = $parser->parse($src_file)->build(method => 'POST', params => $q)->form; 13 13 14 if ( $form->submitted && $form->validate) {15 # TODO: 14 if (1 or $form->submitted && $form->validate) { 15 16 16 # call storage function 17 17 18 my $plugin = 'DumpParams'; 19 18 20 eval "use $plugin;"; 19 20 if ($plugin->process($q)) { 21 die "Can't use $plugin; $@" if $@; 22 die "Plugin $plugin doesn't know how to process" unless $plugin->can('process'); 23 24 # plugin process method should return a true value 25 if ($plugin->process($q, $form)) { 21 26 # show thank you page 22 #print $q->header('text/plain');23 #print "Thank you for your input!\n"24 27 } else { 25 28 # there was an error processing the results 29 die "There was an error processing the submission: " . $plugin->error; 26 30 } 27 31
Note: See TracChangeset
for help on using the changeset viewer.