virtualweb has asked for the wisdom of the Perl Monks concerning the following question:
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..??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: STDIN ..???
by atcroft (Abbot) on Jan 03, 2010 at 03:08 UTC | |
by skx (Parson) on Jan 03, 2010 at 03:17 UTC | |
by Your Mother (Archbishop) on Jan 03, 2010 at 04:15 UTC | |
Re: STDIN ..???
by ikegami (Patriarch) on Jan 03, 2010 at 03:00 UTC |