PART1:
I have a script that is taking values from a form and then emailing the results. At present, the results that are getting mailed are tagged by the form field ID (i.e. ada) but I would like it to be converted to the full name (i.e. Adabas). I use a sort to put the fields in a consistent order, but without doing a continual
foreach $key (sort(keys(%FORM))) {
if ($key eq 'naturaladabase') {
print MAIL "Natural Adabase (MF) \t\t\t";
} elsif ($key eq 'asset') {
print MAIL "Asset Management (BK) \t\t\t";
} ...
}
how would I convert to the correct items?
PART2:
How could I group the items in different areas (hence the MF and BK in parenthesis)?
Thanks.
I have a script that is taking values from a form and then emailing the results. At present, the results that are getting mailed are tagged by the form field ID (i.e. ada) but I would like it to be converted to the full name (i.e. Adabas). I use a sort to put the fields in a consistent order, but without doing a continual
foreach $key (sort(keys(%FORM))) {
if ($key eq 'naturaladabase') {
print MAIL "Natural Adabase (MF) \t\t\t";
} elsif ($key eq 'asset') {
print MAIL "Asset Management (BK) \t\t\t";
} ...
}
how would I convert to the correct items?
PART2:
How could I group the items in different areas (hence the MF and BK in parenthesis)?
Thanks.