in reply to HTML::Template Problem

You're using the 'textarea' tag incorrectly.

You want (I'm guessing on the HTML::Template stuff):
<TEXTAREA NAME="NodeContent" ROWS="100" COLS="20"> <TMPL_VAR NAME=NodeContent> </TEXTAREA>
Instead of:
<TEXTAREA COLS=100 ROWS=20 NAME=NodeContent value="<TMPL_VAR NAME=Node +Content>">
Here is a link on the syntax for textarea

grep
grep> cd /pub
grep> more beer

Replies are listed 'Best First'.
(shockme) Re: Re: HTML::Template Problem
by shockme (Chaplain) on Mar 27, 2002 at 04:11 UTC
    Oh man. Thanks! I've only stared at that for about 3 hours tonight. It could not have been more glaring.

    Thanks again!

    If things get any worse, I'll have to ask you to stop helping me.

Re: Re: HTML::Template Problem
by tomhukins (Curate) on Mar 27, 2002 at 15:06 UTC
    Unless the data in NodeContent is already escaped, you should add the ESCAPE=HTML attribute to your TMPL_VAR tag, so that HTML special chracters such as < are escaped. See the HTML::Template documentation and the relevant HTML specification for details. I'd write something like:
    <TEXTAREA NAME="NodeContent" ROWS="100" COLS="20"> <!-- TMPL_VAR NAME=NodeContent ESCAPE=HTML --> </TEXTAREA>