1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/perl -w
use strict;
use warnings;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $cgi = new CGI;
my $formular_user = $cgi->param('formular_user');
my @users = ("alf", "leonardo", "rocky");
sub myFunc
{
print $cgy->p('Check!');
}
print $cgi->header(-type =>'text/html'),
$cgi->start_html(-title =>'bsp.cgi - Bereitschaft',
-author =>'Testautor'),
$cgi->p('Welcher Kontakt hat Bereitschaft:'),
$cgi->end_html();
print $cgi->start_form(
-name => 'users_form'
),
$cgi->radio_group(-name=>'formular_user',
-values => [sort { $a cmp $b }
@users],
-linebreak=>'true',
-default => "-",
-onClick=>'myFunc()'
),
$cgi->end_form();