Thread Zwei Array ein Hash mit CGI
(18 answers)
Opened by bianca at 2010-06-28 17:44
benutzt keiner
![]() Script: Code (perl): (dl
)
1 2 3 4 5 6 $htc->param( arrayref => [ 'opt_2', # selected ['opt_1', 'option 1'], ['opt_2', 'option 2'], ], ); Template: Ausgabe: Code: (dl
)
1 <select> edit: klarer vorteil: hier ist automatisch schon das "selected" mit drin. Last edited: 2010-06-29 10:09:18 +0200 (CEST) Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |