Track /etc/gitconfig
[msysgit.git] / lib / perl5 / 5.8.8 / CGI / eg / tryit.cgi
blob83c620c3e43a92f31fa58410ef2271df6d472424
1 #!/usr/local/bin/perl
3 use CGI ':standard';
5 print header;
6 print start_html('A Simple Example'),
7 h1('A Simple Example'),
8 start_form,
9 "What's your name? ",textfield('name'),
11 "What's the combination?",
13 checkbox_group(-name=>'words',
14 -values=>['eenie','meenie','minie','moe'],
15 -defaults=>['eenie','minie']),
17 "What's your favorite color? ",
18 popup_menu(-name=>'color',
19 -values=>['red','green','blue','chartreuse']),
21 submit,
22 end_form,
23 hr;
25 if (param()) {
26 print
27 "Your name is: ",em(param('name')),
29 "The keywords are: ",em(join(", ",param('words'))),
31 "Your favorite color is: ",em(param('color')),
32 hr;
34 print a({href=>'../cgi_docs.html'},'Go to the documentation');
35 print end_html;