in reply to Perl truncating HTML form input

:-) Other than infinity, very little in this universe is unlimited.

But I don't think that's the major issue here. Your output appears to have a variety of markup (<ul> and <li, for example) whose source is not apparent.

Update3 (.oO This one must have really bugged me, especially after the reply re enctype and multi-part.) Note also that the markup shown in your initial (input) example is missing a few tags... such as <body>. What's more, the cgi shown has no plausible nexus to the name in the form action which is "spellchecker.pl". Tentative conclusion: Information presented is ne what's really extant.

Perhaps more information about your form would be helpful. Oops. found in the input stanza.

Update2: Searching with big G, found several references (of unknown accuracy) to use of config for Apache to limit max-length of text-area input. But I have not found that documented in Apache itself (yet?).

And, OT, if you're letting (unknown) users input whatever they chose, without taint checking and other precautions, you're begging to lose more than just parts of their submissions.

Replies are listed 'Best First'.
Re^2: Perl truncating HTML form input
by sstevens (Scribe) on Apr 10, 2008 at 14:45 UTC
    Okay, so I was thinking: Why would I be able send an image of several MB in size via forms, but I can't send this few KB of text? When I send images, I have to include enctype='multipart/form-data' in the form tag, so I thought maybe that has something to do with it. I popped that in my code, and it worked! Woohoo! So now the HTML form tag looks like:
    <form action='server-scripts/spellchecker.pl' method='post' enctype='m +ultipart/form-data'>
    Hopefully this helps others in the future.

    Update: I've had a couple questions about the code I posted being what I'm actually using on my server. I want to assure everyone that I copy-pasted from emacs when creating this thread. The HTML page is called blank.html (it was just a test page), and the CGI script is called spellchecker.pl. The original spellchecker.pl had a ton of stuff in it, but I stripped it down to the bare minimum when I was debugging.
Re^2: Perl truncating HTML form input
by wfsp (Abbot) on Apr 10, 2008 at 16:58 UTC
    Your output appears to have a variety of markup (<ul> and <li>, for example) whose source is not apparent.
    CGI.pm's Dump method puts that in. Put where is Foo which is a field in the html form but not in the output?
      "where is Foo which is a field in the html form but not in the output?"

      Exactly! Without the enctype, all other data was being lost!