Kolyan has asked for the wisdom of the Perl Monks concerning the following question:
But with this example I wasn't able to get both previous values on resulting page. Both textfields contain first value. So, can anyone explain what happens here? Is there a workaround?#!/usr/bin/perl -w use CGI qw/:standard/; print header, start_html, start_form, textfield('name'), textfield('na +me'), submit, end_form; if (param) { my @values = param('name'); print "first: $values[0]", br, "second: $values[1]"; } print end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multiple values and CGI.pm
by Trimbach (Curate) on Mar 22, 2001 at 17:54 UTC | |
by Kolyan (Beadle) on Mar 22, 2001 at 19:17 UTC | |
by tye (Sage) on Mar 22, 2001 at 19:46 UTC | |
|
Re: multiple values and CGI.pm
by modred (Pilgrim) on Mar 22, 2001 at 17:58 UTC | |
|
Re: multiple values and CGI.pm
by davorg (Chancellor) on Mar 22, 2001 at 16:09 UTC | |
by Kolyan (Beadle) on Mar 22, 2001 at 17:15 UTC |