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.

Some brief code:

print p ("Select from the pull-down menu.");
print start_form();
print p(textfield ("name", "$who"));
print p(submit ("Delete" ), popup_menu ("value", \@FILE));

Where @FILE contains a list of some 30 elements, say "apple"  and "banana"
are the first two and I'd like it to default to "banana".

thanks if anyone can illuminate me,

Jack Daly



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to