Hello, bigup401.

I am curious about a few things -- it looks like you might be taking your first dip into web form handling with Perl using the CGI module. Is that correct?

If so, there's a few things you might need to clarify.

As marto already indicated, you have <input>tags, but they are not inside <form>tags. I'm not terribly familiar with the inner workings of CGI, but I would interpret some of what marto says to mean that CGI might be limited to stuff in forms. I've only ever used it that way, so I wouldn't have any reason to question that.

Part of your question confuses me, though. You indicate you wish to make a decision on what to do based on whether or not a button has been clicked. Unless I'm missing something, your Perl script using CGIonly starts to run once the button has been clicked -- so I don't understand what you are trying to accomplish.

Can you bridge the gap in our understanding with a slow, patient, thorough, careful, and detailed explanation of what you've done, what you're trying to do, and which piece has you stuck?

Sorry to be so verbose, but I think your problem is conceptual, not code-related, so we need to get past that first.


In reply to Re: cgi check button by marinersk
in thread cgi check button by bigup401

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.