Leser: 1
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
use CGI;
my $cgi = CGI->new(); # neues CGI-Objekt erzeugen
my %params = $cgi->Vars();
print $cgi->header(-type => 'text/html');
my @values = split(/\0/,$params{kategorie});
print $cgi->start_html(),$cgi->h2('Werte aus select');
print $_,'<br />' for(@values);
print $cgi->end_html();
QuoteBenötige aber trotzdem noch die Elemente von den Auswahllisten. Kann mir jemand sagen, wie ich an diese komme?
my $wert = $params{kategorie};
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
print "<form action = \"auswert_name.pl\" method = \"post\">";
print "<table border = 0 width = 200>";
print "<tr bgcolor = #F2F2F2>";
print " Auswahl:";
print "</tr>";
print "<tr bgcolor = #F2F2F2>";
print "<input type=radio name= \"Art\" value=\"Server\"> Servername";
print "</tr>";
print "<tr bgcolor = #F2F2F2>";
print "<input type=radio name= \"Art\" value=\"Service\"> Servicename";
print "</tr>";
print "</table>";
print "<br>";
print "<table border = 0 width=600 cellspacing = 0 cellpadding = 0>";
print q(<tr>);
print "<td>Standort:</td>";
print "<td>Funktion:</td>";
print "<td>Kennung:</td>";
print q(</tr>);
print q(<tr>);
print "<td>";
print "<select name =\"standort\">";
foreach (@standorte) {
print "<option> $_->[1] </option>";
}
print " </select>";
print "</td>";
print "<td>";
print "<select name = funktion>";
foreach (@funktionen) {
print "<option value=$_->[0]> $_->[1] </option>";
}
print " </select>";
print "</td>";
print "<td>";
print "<select name = kategorie>";
foreach (@kategorie) {
print "<option value=$_->[0]> $_->[1] </option>";
}
print " </select>";
print "</td>";
print "</tr>";
print "</table>";
print "<BR><BR>";
print "<table>";
print "<tr>";
print "<td width = 200>";
print "Anzahl: <input name=\"anzahl\" type = int min = 1 max = 999 size=10>";
print "</td>";
print " <td>";
print "<input type=\"submit\" value=\" Absenden \">";
print "  ";
print "<input type=\"reset\" value=\" Abbrechen \">";
print "</td>";
print "</tr>";
print "</table>";
print "</form>";
6 Einträge, 1 Seite |