Hi,
Is there a way to determine the size of a parameter of a textarea or filefield
in CGI.pm?
For example, given this form.
__BEGIN__
use CGI qw/:standard/;
# snip
textarea(
-name => 'some_name',
-rows => 10,
-columns => 50,
-wrap => 'physical'
);
#or
filefield(-name=>'upload_file', -size=>60)
__END__
We would like to know the size of:
param('some_name'); # of text area
and
param('upload_file') # of file field
I've tried with:
uploadInfo($file)->{'Content-Length'};
But it doesn't print anything.
Regards,
Edward
------------ Institute For Infocomm Research - Disclaimer -------------
This email is confidential and may be privileged. If you are not the intended
recipient, please delete it and notify us immediately. Please do not copy or
use it for any purpose, or disclose its contents to any other person. Thank you.
--------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>