Content length includes all the content, including names of form parameters, etc. If you want to count the keystrokes for a form, you could just run through the form parameters and get the length of each value (assuming they are all text fields). Check out these two links to the CGI.pm documentation:

http://cpan.uwinnipeg.ca/htdocs/CGI.pm/ CGI.html#fetching_the_names_of_all_the_parameters_passed_to_your_script_
http://cpan.uwinnipeg.ca/htdocs/CGI.pm/ CGI.html#fetching_the_parameter_list_as_a_hash_


Hope that helps.
Sean

On Feb 3, 2005, at 7:56 AM, Sara wrote:

I have like 20 variable coming from a form, using CGI.pm in my script.

I am at a loss as how to get $ENV{'Content_lenght'} for all of those
collectively. Is there anything in CGI.pm for it?. I am trying to count
every keystroke that user inputs to form.

Thanks,
Sara.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to