X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect.html;h=100df94d08c76e6248eaa0fa6d9ac0e929950092;hp=3a0dc5b686e6b6a751c53b84c8379304625b0e28;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hpb=a2ecb1cf6a6c084c521710f1256da082f70ba9e5 diff --git a/httemplate/elements/select.html b/httemplate/elements/select.html index 3a0dc5b68..100df94d0 100644 --- a/httemplate/elements/select.html +++ b/httemplate/elements/select.html @@ -4,12 +4,13 @@ field => 'myfield', # NAME property curr_value => 'foo', labels => { # or 'option_labels' + # note: these will be escaped for you, don't escape them 'AL' => 'Alabama', 'AK' => 'Alaska', 'AR' => 'Arkansas', }, options => [ 'AL', 'AK', 'AR' ], - curr_value => $cgi->param('myfield'), + curr_value => scalar( $cgi->param('myfield') ), # recommended id => 'myid', # DOM id @@ -30,7 +31,7 @@ + <% $opt{'post_field_label'} %> % } <%init>