Posted on 2000-04-13
Please help me with the passing the correct syntax to the
scrolling_list function in the CGI.pm
I am reading the following from the file:
123 ./test1 Test1 Directory
126 ./test2 Test2 Diredctory
435 ./test3 Test3 Directory
I have assigned the
@LIST1 aray - the number values and
@LIST2 array - directory name
@LIST3 array - Directory discription
Now I want to create a scroll box with the name 'topic' where it will display the @LIST3 array as the Labels and @LIST1 as values.
The ultimate goal is to pass to the Web page the discription to be displayed in the form as a label and the encoded directory number as a value to each label.
I am using the following sub:
I have to create a hash using these 2 arrays inside the Function.
Please help me with this.
my(@list1) = @LIST1;
my(@list3) = @LIST3;
print scrolling_list(-name=> 'topic',
-values=> ????? ,