I was hoping the input type="SUBMIT" ... onclick stuff I had at the bottom of nc1_mainmenu.tmpl would allow me to pass the $CGI variables and launch the new .pl page. :-(

So....

I made the suggested changes, but I get the following error (which I've seen before but my previous code "seemed" to have eliminated it):

Can't call method "param" on an undefined value at /local/www/htdocs/scripts/campus/nc1_rpt1_summary.pl line 97.

Line 97 is about the fifth line up from the bottom of nc1_rpt1_summary.pl ({ my $val = $CGI->param($parm);). It seems to me I've declared my variables, but the program doesn't think so. The newly revised gory details are on my scratch pad since I didn't want to clutter up this post (after this is resolved, I'll post the answer so future super-searchers can find it).

Is there a better way to do this? I have done some significant reading about recursive vs. iterative, and I think I'd like to go with the iterative variation of launching the new web pages (mostly because of how I'm planning to test this junk). I was trying to make this a small example of how to pass the $CGI variables (I've only got three that I'm trying to track), so I can learn how to use the CGI module along with HTML::Template (which I'm loving, by the way!). I've already got the DBI and DBD::Sybase code working in a separate tiny file.

Thanks for any insights you can provide. If I can't (relatively) quickly resolve this particular issue, I'll backtrack and take freddo411's advice and using jeffa's example and build a tinier example from there. Thanks!

Lori


In reply to Re: Re: HTML::Template, CGI, passing variables, launching new script by Lori713
in thread HTML::Template, CGI, passing variables, launching new script by Lori713

Title:
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, details, 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, summary, 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.