gsd4me has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI - input number fields
by Corion (Patriarch) on Sep 07, 2017 at 20:14 UTC | |
by gsd4me (Beadle) on Sep 07, 2017 at 21:21 UTC | |
by choroba (Cardinal) on Sep 07, 2017 at 21:28 UTC | |
by gsd4me (Beadle) on Sep 08, 2017 at 19:10 UTC | |
by Corion (Patriarch) on Sep 08, 2017 at 19:16 UTC | |
| |
|
Re: CGI - input number fields
by Anonymous Monk on Sep 07, 2017 at 21:54 UTC | |
by gsd4me (Beadle) on Sep 08, 2017 at 19:13 UTC |