[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] problem with default in popupMenu in cgi.pm



Hi
I have this problem :

The first request is good, my default is 'Q' and I got the right
selected item
But for the following CGI requests,  the popup is set to something
different (like 'V')
then I use this Code :

$default = ($queryFail) ? $marketQuery : 'Q';
print "default : $default<p>\n";

These lines work fine, they print 'Q' or something different
($marketQuery is the selected item, like 'V')
But I always get $marketQuery as default !! (here : 'V')

 return $query->popup_menu(  -name=>'marketQuery',

-values=>[@listeSymboles],
                                                  -default=>$default,

-labels=>\%hashSymboles);

I got this result even with this code :

print "default : $default<p>\n";
 return $query->popup_menu(  -name=>'marketQuery',

-values=>[@listeSymboles],
                                                  -default=>'Q',

-labels=>\%hashSymboles);

What am I doing wrong ?

Thanks

JF


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org