Thread Zwei Array ein Hash mit CGI (18 answers)
Opened by bianca at 2010-06-28 17:44

renee
 2010-06-29 09:35
#139164 #139164
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
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/

View full thread Zwei Array ein Hash mit CGI