Thread checkboxes mit Parametern zum Aufrufen desselben Skripts
(12 answers)
Opened by miwieg at 2013-08-07 16:50
Dann so:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 use CGI; my $cgih = CGI->new; my $par1 = $cgih->param('par1'); my $par2 = $cgih->param('par2'); my $formular = qq( <FORM> <INPUT TYPE="CHECKBOX" NAME="par1" VALUE="true"> Parameter 1 <INPUT TYPE="CHECKBOX" NAME="par2" VALUE="true"> Parameter 2 <INPUT TYPE="BUTTON" NAME="senden" VALUE="aktualisieren"> </FORM> ); print $cgih->header; if ($cgih->param('senden')) { # verarbeite Parameter } # Formular ausgeben print $formular; |