I have this cgi that retrieves the values form the form and sends and email to both me and the person who filled it out. originally the form had a single select pull down menu but i altered it to have multiple values. the problem is that i can't seem to get the values and if i do, i get the first one selected and not the rest.
the snippets of code are as follows:
...
$emailaddress = $query->param('email');
@values = @{$query->param('interest')}; ----->this is how i was getting the multiple values
$var_1 = $query->param('firstname');
$var_1 =~ s/\.\.//g;
...
...
print MAIL <<LINE;
From: $emailaddress
To: $to
Subject: Form.
The following was submitted via the website contact form
(from host $remote_host):
Area of Interest: ------>what do i put here so that the multiple values end up in the email?
First Name: $var_1
...
...
close MAIL;
//}
please help if you can. its been stressing me out for a long time!
thanks
the snippets of code are as follows:
...
$emailaddress = $query->param('email');
@values = @{$query->param('interest')}; ----->this is how i was getting the multiple values
$var_1 = $query->param('firstname');
$var_1 =~ s/\.\.//g;
...
...
print MAIL <<LINE;
From: $emailaddress
To: $to
Subject: Form.
The following was submitted via the website contact form
(from host $remote_host):
Area of Interest: ------>what do i put here so that the multiple values end up in the email?
First Name: $var_1
...
...
close MAIL;
//}
please help if you can. its been stressing me out for a long time!
thanks