bebewinla has asked for the wisdom of the Perl Monks concerning the following question:
I use HTML::Template to display a list of files with the checkbox next to it. Here is a snip of the html template.
<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>
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML::Template with checkbox
by GrandFather (Saint) on Sep 05, 2012 at 02:38 UTC | |
by bebewinla (Novice) on Sep 05, 2012 at 16:03 UTC | |
by GrandFather (Saint) on Sep 05, 2012 at 23:34 UTC | |
by bebewinla (Novice) on Sep 06, 2012 at 00:34 UTC | |
by Anonymous Monk on Nov 03, 2014 at 02:16 UTC | |
Re: HTML::Template with checkbox
by choroba (Cardinal) on Sep 04, 2012 at 23:48 UTC | |
Re: HTML::Template with checkbox
by rpnoble419 (Pilgrim) on Sep 05, 2012 at 03:14 UTC | |
by bebewinla (Novice) on Sep 05, 2012 at 16:07 UTC | |
by rpnoble419 (Pilgrim) on Sep 05, 2012 at 19:49 UTC | |
by bebewinla (Novice) on Sep 05, 2012 at 21:26 UTC | |
by rpnoble419 (Pilgrim) on Sep 06, 2012 at 04:17 UTC | |
|
Back to
Seekers of Perl Wisdom