Dear all,

A seeker of information rather than a software problem. I have a CGI module, it generates HTML code (fine and dandy) with a form, several types of input (Radio, checkbox, number and text amongst others). Everything works smoothly so far except ...

Running the code on a server (local and 'real') the parameters returned via the POST operation on the SUBMIT button being pressed seem to be a bit bizarre. Viz. no value is returned (correctly) for the checkboxes or radio when they have not been input by the user, but for number or text types, their input "identifier" is returned, albeit with an empty value for the relevant fields (see below with a real value entered by me (5) as a test).

K0010: K0011: K0012: K0028: 5 K0039: K0040: K0041: K0042: finishButton: FINISH

I can program round this fact/anomaly but I simply wondered why those types of Form>Input return their identifiers when no text or values have been selected by the user whereas other types do not. Any sages out there know the answer?


In reply to CGI - input number fields by gsd4me

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.