HI, I have been writing a CGI script that prodeuces a table with 8 rows and 12 columns. I have embedded each cell with a radio button to click them ON. So, apparently I have got 96 radio buttons in my page. The specialty(disadvantage?) with radio button we cant click more than one radio button with same 'name'

In my case I should be able to check more than one radio button. So I have got different names for each button. The bit of code of that does this is something like this:
foreach my $cell (@rows){ split(/,/); print $cgi->td("$cell"); for(my $i= 1;$i<=12;$i++){ print $cgi->td($cgi->radio_group(-name=>"radio$cell$i +", -values=>['ON'], -default=>'', -column=>2, -row=>1)) ; } print $cgi->Tr(); }

where @rows is the list of row names (which is A-H). So, I have got radioA1..A12 for the first row, B1..B12 for the second row and so on. It all is fine till here, the problem now is, how could I check(whether any parameters are entered and if not report the viewer to click any buttons to work on) and/or get those parameters that has been clicked ON.

I have processes depending upon them switching ON or OFF. I have got a command line script for these processes. All I have to do is to get the parameters that are requested for each cells. Is there any thing to get all the parameters that has been entered in the page? and then walking through the array? Or is there any better way of doing this?

Any suggestions please,
Thanks a lot in advance.

In reply to Params in CGI by Anonymous Monk

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.