This html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1 +"> </head> <body> <form action='z/bin/test.cgi' method='post'> <textarea name='textinputs'>In a village of (as in your post)</textare +a> <input type='hidden' name='foo' value='foo'> <input type='submit'> </form> </body> </html>
and script
#!/usr/local/bin/perl use strict; use CGI qw/ :standard /; print "Content-type: text/html\n\n"; print "<html>\n"; print Dump; print "</html>\n";
gave
<html> <ul> <li><strong>textinputs</strong></li> <ul> <li>In a village of La Mancha, ... telling of it. <br /> <br /> You must know, then, that the above-named ... thoughts prevented him. + </li> </ul> <li><strong>foo</strong></li> <ul> <li>foo</li> </ul> </ul></html>
I've truncated the text but it shows that all of it was returned. There is also the foo field there. This is the hidden field you have in your html. This doesn't show in your output.

Are you sure you are looking at the files (html/cgi) that you think you are? This is often the reason when I hit frustating snags like this. :-)

Good luck!


In reply to Re: Perl truncating HTML form input by wfsp
in thread Perl truncating HTML form input by sstevens

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.