Hi:

Im trying to make a generic Form Handler script, (so the script will not know the field names).

I downloaded many free readily available Form Handler scripts just to see how they handle the collection of "names" and "values" from the HTML form.

All of them have a parsing routine.

But my script doesnt work with a parsing routine since Im using:

use CGI
$q = new CGI;

So basically if I wanted to use file names I would do this:

$Whatever = $q->param('Whatever');

But the thing is that the script is supposed to be generic.. in other words handle any number of field names not knowing the field name previuosly.

I found a small snippet of code to get any info coming to a script

while ($line = <STDIN>) { chomp $line; #do whatever must be done }

But I understand this is used to received data from a file.

Is there a comparable snippet of code to received any data from a form without a parsing routine..??


In reply to STDIN ..??? by virtualweb

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.