How to select a right item from drop-down list
am 27.12.2006 20:28:56 von cyrusI like to know how to get to the selected item from drop-down list in
perl, below is a portion of the code. A user select an item from
drop-down list & click go, by clicking go the script pick the selectes
item, open data file and replace existing one with selected item .
I have another hidden submit button with different value "value =
some_other_value" and name is "Submit_list", but when I click go button
the other submit button the hidden one takes effect!
So there are two question here:
1- How to use if in the drop-down list ?
2 Why the other submit button takes effect when I click go button?
The other submit button:
print "
-
-
-
some other code are here
-
-
printf "";
printf "";
if ( Submit_Action eq "Go" ) {
if (action == 1) {
my $data_file =some data
my $replace = `perl -pi -w -e 's/yes/no/g;' $data_file`;
}
}
Re: How to select a right item from drop-down list
am 28.12.2006 10:02:15 von Joe SmithCyrus wrote:
> printf "