Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I am trying to send data from html form (POST method) to a perl cgi scipt. I cannnot seem to read the input data from STDIN.
Neither of these work:
$bytes=sysread(IN, $query, $ENV{'CONTENT_LENGTH'});
$bytes2=read(STDIN, $query2, $ENV{'CONTENT_LENGTH'} );
The $bytes value is UNDEF.
$bytes2 shows zero.
$ENV{'CONTENT_LENGTH'} variable shows the length of the data when I print it out.
I do not want to read (param('fieldname') to grab each item, there are many. I would like to get the entire input as one string and parse out speal characters before splitting.
Where is the data?
Is there a module required for READ/SYSREAD?
Thanks
I am trying to send data from html form (POST method) to a perl cgi scipt. I cannnot seem to read the input data from STDIN.
Neither of these work:
$bytes=sysread(IN, $query, $ENV{'CONTENT_LENGTH'});
$bytes2=read(STDIN, $query2, $ENV{'CONTENT_LENGTH'} );
The $bytes value is UNDEF.
$bytes2 shows zero.
$ENV{'CONTENT_LENGTH'} variable shows the length of the data when I print it out.
I do not want to read (param('fieldname') to grab each item, there are many. I would like to get the entire input as one string and parse out speal characters before splitting.
Where is the data?
Is there a module required for READ/SYSREAD?
Thanks