Remember my checkbox_group question? Well, when I tpage this:

[% 
   USE q = CGI ;

keyword = {
   "9" => "Payments"   
  "11" => "settlement" 
} ;     

q.start_form ;
 q.checkbox_group({ Name => 'keyword_id'
               Values =>  keyword.keys.sort
               Default => "${params.keyword_id}"
               Labels => keyword 
                } ).join ;
q.end_form ;
%]

I get:

<form method="post" action="/usr/bin/tpage" 
enctype="application/x-www-form-urlencoded">
<input type="checkbox" name="keyword_id" value="11" />settlement 
<input type="checkbox" name="keyword_id" value="9" />Payments
ARRAY(0x83159d0)

If I take out the checkbox_group OR the end_form I don't get the ARRAY
thing.

Any ideas?




-- 
Dave Hodgkinson, Wizard for Hire         http://www.davehodgkinson.com
Editor-in-chief, The Highway Star        http://www.thehighwaystar.com
   Interim Technical Director, Web Architecture Consultant for hire

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to