perlnewbie05
Programmer
Hi,
I'm trying to retrieve arrays through my sendmail portion of the script...
For example, note the following script:
#!/usr/bin/perl -w
use CGI qwstandard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
my @decorations = param('Decorations');
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
foreach my $Decorations (@decorations) {
print "You picked $Decorations.<br>\n";
}
print "</body></html>";
I created a form with a number of checkboxes and drop down lists. In the above example, there are 4 checkboxes. Depending on what user checks off is what is displayed during output to the browser, which is great. But I also want these "arrays" or "lists" to be sent to my email via the sendmail portion of the script, but I'm not sure how to do so.
Any help would be greatly apprecated.
I'm trying to retrieve arrays through my sendmail portion of the script...
For example, note the following script:
#!/usr/bin/perl -w
use CGI qwstandard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
my @decorations = param('Decorations');
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
foreach my $Decorations (@decorations) {
print "You picked $Decorations.<br>\n";
}
print "</body></html>";
I created a form with a number of checkboxes and drop down lists. In the above example, there are 4 checkboxes. Depending on what user checks off is what is displayed during output to the browser, which is great. But I also want these "arrays" or "lists" to be sent to my email via the sendmail portion of the script, but I'm not sure how to do so.
Any help would be greatly apprecated.