bory has asked for the wisdom of the Perl Monks concerning the following question:
In the $data_file I have smth like this:open(FILE, "$data_file") || die("Could not open file: $!"); @param=<FILE>; close<FILE>; foreach $line(@param){ chomp ($line); print "<br><br><br><br><b>The current list of the parame +ter <font color=#FF6600>$line</font></b><hr>\n"; my $i="$line.txt"; my $new_param="/data/aww/cgi-bin/$i"; #for each line re +presents a parameter and for each parameter I open coresponding text +file with it's values print "<table>\n"; print "<select multiple name=\"$line\" size=4>\n"; open(FILE1, "$new_param") || die("Could not open file: + $!"); @val=<FILE1>; close<FILE1>; foreach $newline(@val){ chomp ($newline); print "<option value=\"$newline\">$newline\n"; } print "</select></td></tr></table>\n"; print "<input type=\"hidden\" name=\"$line\" value +=\"$newline\">"; }
I don't know how to print all the values selected in another cgi script. Thank you for your time.State Code Server
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multiple-choice selects
by eric256 (Parson) on Oct 23, 2003 at 15:25 UTC | |
|
Re: multiple-choice selects
by hmerrill (Friar) on Oct 23, 2003 at 16:24 UTC | |
by Grygonos (Chaplain) on Oct 23, 2003 at 17:03 UTC |