Hello Monks,

I am having dificulties trying to pull the values from radio buttons in the html script below, with the my cgi script:

<tr> <td><span class="category">Reporting Dashboard</span></td> <td><input type=text size=18 name="dashboardUse" value=""></td> <td><span class="note"><input type=radio name="dashboard" id="dash +board1" value="">1&nbsp;<input type=radio name="dashboard" id="dashbo +ard2" value="">2&nbsp;<input type=radio name="dashboard" id="dashboar +d3" value="">3&nbsp;<input type=radio name="dashboard" id="dashboard4 +" value="">4&nbsp;<input type=radio name="dashboard" id="dashboard5" +value="">5</span></td> </tr>

The script runs with out error, and sends me the formatted email. However, I do not see the values for the radio buttons. Here is some of my code. I am not certain how to go about fixing this. In my script I have pointed to the parameter named "dashboard" where the value would be stored after a person clicks the button.

Any info would be welcomed.

my ($reportingdashboard) = $main::cgi->param('dashboardUse'); my ($satisfactiondash) = $main::cgi->param('dashboard');

Thanks again for all of your help.

newbie Satanya


In reply to cgi script does not pull the values from the radio buttons by Satanya

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.