Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hi rpnoble419, Thanks for you sample program. But I still having trouble of getting the values "field". I used TMPL_LOOP NAME to display a list of filenames & checkboxes next to it. This is all done with template & print $template->output. I defined the checkbox inside a form, also a "submit" button.

<form method="post" action="index.cgi"> <td><input type="checkbox" name="field" <TMPL_VAR NAME="check"> value +="<TMPL_VAR NAME = "fn">"></td> </form>
when "submit" is click, my main script index.cgi would check check for the command then call a subroutine "download"
sub download { my @anything = $q->param(); my $anything_num = @anything; my @anyfetch = $q->param("field"); my $anyfetch_num = @anyfetch; print "anything_num = $anything_num"; print "anyfetch_num = $anyfetch_num"; }

both of print give me Zero values, it does not seem like the subroutine is able to fetch the input field from my table html page. I am not sure why. I have the concept, but somehow when applying to coding, it's different story.

In reply to Re^6: HTML::Template with checkbox by bebewinla
in thread HTML::Template with checkbox by bebewinla

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others surveying the Monastery: (5)
    As of 2018-06-23 20:50 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (125 votes). Check out past polls.