Charlotte Hee wrote:
I want to allow the user to select more than one magazine so I
specify the option multiple=>1 for this. The web form seems to do
the right thing, highlighting more than one magazine if I hold the
ctrl-key down. But when I submit the form the parameters passed
only include my first choice.
<snip>
use CGI qw(:standard :html3);
our(@catArray, $val, $url);
@catArray = ("Time Magazine","MIT Technology","Herbalist");
print header,
start_html('Subscribe'),
h3('Subscriptions');
if ( param() ){ # the form has been submitted
foreach ( param() ){
$val = param($_);
print h4("$_ = $val");
Try replacing $val with @val.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>