I hit this problem a while back and got round it by creating the drop down box in HTML. I am tidying the code up and would like to use the correct popup_menu syntax.
This is some test code to highlight the problem. The dropdown menu works fine but I cannot get the default value to display, it always displays the first value of the array, am I missing something?
Keith
This is some test code to highlight the problem. The dropdown menu works fine but I cannot get the default value to display, it always displays the first value of the array, am I missing something?
Code:
my @AVALS = ("- Select -","one","two","three");
my $LoadedValue = "two";
my $part = 'choice';
my $DATAA= $query->popup_menu(
-name=>$part,
-values=> \@AVALS,
-default=> $LoadedValue);
Keith