in reply to Perl truncating HTML form input
and script<!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>
gave#!/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";
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.<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>
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl truncating HTML form input
by sstevens (Scribe) on Apr 10, 2008 at 18:33 UTC | |
by Anonymous Monk on Apr 11, 2008 at 03:32 UTC |