Slide 11.19: WML selection (cont.) Slide 11.21: WML tasks Home |
<select>
's attribute multiple="true"
.
$FORM{cgi_items} = "xml;wap";if the user selected the XML and WML tutorials. The following code can be used to separate the selected items and put them in an array
@items
:
@items = split(/;/, $FORM{cgi_items});A loop is then used to access each selected item:
foreach $item (@items) { ... }
http://people.cs.und.edu/~wenchen/cgi-bin/handheld/wml/MultipleSelect.pl
|
|
---|---|
|