perlquestion
bebewinla
<p>
I use HTML::Template to display a list of files with the checkbox next to it. Here is a snip of the html template. </p>
<code>
<TMPL_LOOP NAME="files_loop">
<tr id="TMPL_VAR ID>">
<td><TMPL_VAR NAME ="index"></td>
<td><TMPL_VAR NAME ="filename"> </td>
<td><input type="checkbox" name="field" <TMPL_VAR NAME="check">>
</td>
</tr>
</TMPL_LOOP>
<form action="index.cgi" method="post">
<input type="submit" name="Edown" value=" Download ">
<input type="hidden" name="cmd" value="download">
</form>
</code>
<p>
In my cgi script, I was able to display the output I wanted using print $template->output. Now I am unable to obtain the checkbox values along with the respective filenames when user check the boxes and select download button. I'd like to get a list of filenames that were checked.
I tried q->param("field") does not seem working at all.
Please help
</p>