in reply to Interactive Form Creation/Maintenance
You can "push" data into Form components using things similar to the following examples:
<INPUT TYPE="TEXT" NAME="FOO" VALUE="<TMPL_VAR NAME="FOOVALUE">"> # Create a Selection list <SELECT NAME="BARLIST"> <TMPL_LOOP NAME="BARLIST"> <OPTION VALUE="<TMPL_VAR NAME="VALUE">"><TMPL_VAR NAME="TEXT_VALUE"> </TMPL_LOOP> </SELECT>
If you need more information regarding building TMPL_LOOP structures the HTML::Template docs show some good examples, but I will include one that would work for the above loop:
$tmpl->param('BARLIST', [ {'VALUE' => '123', 'TEXT_VALUE' => 'First three' }, {'VALUE' => '456', 'TEXT_VALUE' => 'Second three'} ]);
|
|---|