Hi all!
I'm using the following code to extract form values:
sub Get_formvalues() { my (%ReturnVariable); if (($ENV{'REQUEST_METHOD'} eq "GET") || ($ENV{'REQUEST_METHOD'} e +q "POST")) { my @keywords = $query->param; foreach my $name (@keywords) { my @values = $query->param($name); foreach my $value (@values) { if ($ReturnVariable{$name}) { $ReturnVariable{$name} .= "\n$value"; } else { $ReturnVariable{$name} = $value; } } } } return (%ReturnVariable); }
This makes it possible for me to get the formvalues via local %formvariables = Get_formvalues(); and to access them via $formvariabel{'name'} This works perfectly and has done that for several years.
A while ago however, we've ran into problems where these values has been empty, and we have narrowed it down to that only some users using "AppleWebKit"-based browsers generates the problem (for example HTTP_USER_AGENT = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; sv-se) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1).
My questions:
1. Is this "manageable"?
2. Is this possible to trace a broken form if that is the problem?
3. Is this a known problem?

In reply to FastCGI form debugging by DreamT

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.