X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect.html;h=689566e36ac571fb2e3a4fe4de39dd308fb09339;hb=081638aa4a483577a9c5bc7ac9ea518370cf2381;hp=3a0dc5b686e6b6a751c53b84c8379304625b0e28;hpb=1aecd5bf33146bf3f374341a3814960ae1d419e8;p=freeside.git diff --git a/httemplate/elements/select.html b/httemplate/elements/select.html index 3a0dc5b68..689566e36 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 @@