1
我需要使用Perl创建HTML弹出式菜单。谁能帮我?如何使用Perl制作HTML弹出式菜单?
我需要使用Perl创建HTML弹出式菜单。谁能帮我?如何使用Perl制作HTML弹出式菜单?
使用下面的代码:
如果你在传统知识或CGI要#!/usr/bin/perl
use CGI qw/:standard/;
print header,
start_html('Favorite Food'),
start_form, "What's your favorite Food? ",
popup_menu(
-name => 'food',
-values => [ qw(Juice Cake Chocolate Fruits) ]
),
submit,
end_form,
end_html;
,如果你想要的是Tk一起使用的消息框。 – ungalnanban 2010-05-11 09:22:10