in reply to altering existing form
to this:<input type=text name="dept" size=30>
Then, in your script, add something like this:<select name='dept> <TMPL_LOOP DEPT_LOOP> <option><TMPL_VAR DEPT></option> </TMPL_LOOP> </select>
Where the @dept array is generated with your original code.my @loop_data; for my $dept (@dept) { push(@loop_data, {DEPT => $dept}); } $template->param(DEPT_LOOP => \@loop_data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: altering existing form
by djbryson (Beadle) on Feb 27, 2007 at 16:22 UTC |