try this for fun - it accepts the text box values as anrray
#!/usr/bin/perl
## relatively painless iteration over multiple selection boxes
use CGI qw(:standard);
@sel = param('sel');
@entry = ("first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth");
print "Content-Type: text/html\n\n";
if ($sel[0] ne '')
{
# do database stuff here (each entry in the sel array is the index to your array of data for the database)
## just for fun show boxes checked
foreach $ent (@sel)
{
print "you checked the $entry[$ent] box \n";
}
}
print <