seanadams has asked for the wisdom of the Perl Monks concerning the following question:

I have a user enter html code into a <textarea>, and it works when there is not a lot of code. But if there is... it just won't work. Any ideas on better ways to pass a large amount of HTML through CGI to a Perl script?

Replies are listed 'Best First'.
(jeffa) Re: Taking HTML code as a parameter
by jeffa (Bishop) on Oct 27, 2001 at 23:29 UTC
    If you are using GET, then use POST - if you are using POST, then try a file upload, FTP is another thought.
Re: Taking HTML code as a parameter
by davis (Vicar) on Oct 28, 2001 at 16:44 UTC
    If you're using CGI.pm (and you almost certainly should be :) ), there's a variable $CGI::POST_MAX which, if set, puts a ceiling on the amount of data that can be received in a POST.
    This isn't very likely unless you've explicitly set it, so Jeffa's comments are most likely your best bet.
    If you showed us some code, or at least told us how much data is too much, then we might be able to give more informed/relevant advice.
    Hope this helps