- Timestamp:
- 10/12/04 12:57:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/fb-cgi.pl
r7 r9 7 7 my $q = CGI->new; 8 8 9 my $src_file = get_src_file($q->param('form_id')); 9 my $form_id = $q->param('form_id'); 10 my $src_file = get_src_file($form_id); 10 11 11 12 my $parser = Text::FormBuilder->new; … … 16 17 # call storage function 17 18 18 my $plugin = ' DumpParams';19 my $plugin = 'StoreSQLite'; 19 20 20 21 eval "use $plugin;"; … … 23 24 24 25 # plugin process method should return a true value 25 if ($plugin->process($q, $form )) {26 if ($plugin->process($q, $form, $form_id)) { 26 27 # show thank you page 27 28 } else { … … 37 38 sub get_src_file { 38 39 my $form_id = shift; 39 return "$form_id.txt"; 40 my $form_spec_path = 'F:/Projects/SurveyMaker/form_specs'; 41 return "$form_spec_path/$form_id.txt"; 40 42 }
Note: See TracChangeset
for help on using the changeset viewer.