"Jack Daly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can some kind soul take a moment to answer a question? I want to have a > default value in popup menu, right now I have the menu defaulting to the > first value in the list. Is there any non-object oriented way to do this? > Cause I don't know OOP as yet, and that's all I get from perldoc -m CGI.
Are you sure you read the output of perldoc -M CGI????? early on in the doc is says if you import the functions you can despense with the $query-> (oop) part of the syntax. Then it says: print $query->popup_menu('menu_name', ['eenie','meenie','minie'], 'meenie',\%labels); -or (named parameter style)- print $query->popup_menu(-name=>'menu_name', -values=>['eenie','meenie','minie'], -default=>'meenie', -labels=>\%labels); There it is, plain as day, an argument named ``default''. Its good that you are interested, but please (re)read the docs before posting a question. The answer to your question above is VERY hard to miss. trwww -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]