I have a Publication Order Form, with checkboxes beside each title. The list needs to be emailed to ONLY the department that carries the publication ordered (not all departments). I think I should I grab the form data, use CHOMP to get only "fire" from "fire-01" but then how do I get it into {$query->param( (see <snip3>) so I can associate it with the email address? Many thanks, Gregg <snip1> ############################################################################## # Assigned variables (left of =) from FORM INPUT (right of =) ############################################################################## my $ri_001 = $query->param('oreports001'); # not required my $ri_002 = $query->param('oreports002'); # not required ############################################################################## # Variables - Forest Management section ############################################################################## my $mgt_01 = $query->param('mgt-01'); # not required my $mgt_02 = $query->param('mgt-02'); # not required ############################################################################## # Variables - Forest Protection section ############################################################################## my $fire_01 = $query->param('fire-01'); # not required my $fire_02 = $query->param('fire-02'); # not required </snip1> <snip2> my %divisions = ( Fire => { contact => '[EMAIL PROTECTED]', Abbrev => 'Fire', }, 'Resource Info' => { contact => '[EMAIL PROTECTED]', Abbrev => 'RI', }, Management => { contact => '[EMAIL PROTECTED]', Abbrev => 'MGT', } </snip2> <snip3> # return EMAIL ADDRESS for VDOF DIVISIONS my $contact = $divisions{$query->param('??????')}->{contact} || ''; </snip3>
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!