in reply to Passing Data using CGI

Should the data in @LogData be encoded first?
Should the greater-than signs in the log content be changed to HTML equivalents?

Yes. You can do so by using HTML::Entities.

Note: You should also do that for <textarea>'s, because if you don't, </textarea> will end the thing :)

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Replies are listed 'Best First'.
Re: Re: Passing Data using CGI
by Anonymous Monk on Jan 05, 2002 at 12:50 UTC
    Thanks very much.
    It worked like a charm (after a few tests). The sample with the bad chrs "\200-\377" wasn't encoding. When I removed that arg, the encoding worked fine.

    It fixed the problem.

    budman