Thread Zwei Array ein Hash mit CGI
(18 answers)
Opened by bianca at 2010-06-28 17:44
Ach, den HTC-Teil kann man hier noch etwas einfacher haben:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 ... my %options = ( 'option 1' => 1, 'option 2' => 2, ); ... $template->param( options => \%options ); ... Code (html): (dl
)
1 2 3 4 5 <select> <%EACH options %> <option value="<%= __value__ %>"><%= __key__ %></option> <%/EACH options %> </select> OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |