Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How do I check if checkbox in the form was checked or not?

by Zombie dima (Initiate)
on Mar 21, 2002 at 05:57 UTC ( #153247=categorized question: print w/replies, xml ) Need Help??
Contributed by Zombie dima on Mar 21, 2002 at 05:57 UTC
Q&A  > input and output


Answer: How do I check if checkbox in the form was checked or not?
contributed by cLive ;-)

#!/usr/bin/perl -w use strict; my $q = CGI->new(); if ($q->param('check_box_name') { # checkbox was checked } else { # checkbox left unchecked }

cLive ;-)

Answer: How do I check if checkbox in the form was checked or not?
contributed by Juerd

When it's checked, its value is sent. When it's not, it's not.

Please (register and) log in if you wish to add an answer



  • 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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [Corion]: choroba: I'm still using spod5 as my pod-to-ooxml- converter didn't really get off the ground so far
    [choroba]: Slidy is basically HTML, so I'm not sure I really fly high :)
    choroba should make his presentation scaffolding public
    [Corion]: choroba: spod5 converts pod to S5 HTML, so it's also still basic. I find the lack of animations (in the sense of "highlight this", "highlight that" in code) somewhat tedious as I do it with rendered PNGs
    [Corion]: I haven't found a good way to include/use the source SVGs I use for creating the PNGs directly as animations
    [ambrus]: Presentations come in many different shapes, and so slides do as well.
    [Corion]: Doing that in Powerpoint or Ooxml would be nice(r) but I'm much quicker doing the outline of a presentation and the code as Pod

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (13)
    As of 2017-09-26 10:01 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      During the recent solar eclipse, I:









      Results (293 votes). Check out past polls.

      Notices?