You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yves Vindevogel <yv...@implements.be> on 2003/12/28 20:18:24 UTC

Newlines in Textarea from/to database

Hi,

How can I send the "newline" characters from an HTML textarea (when you
press enter in a textarea, you get a new line) to my database and get the
back out ?

Yves Vindevogel
Implements

Kempische Steenweg 206 - 3500 Hasselt - Belgium
Tel+Fax: +32-11-43.55.76  Mobile: +32-478-80.82.91
yves.vindevogel@implements.be - www.implements.be


First they ignore you. Then they laugh at you. Then they fight you. Then you
win.
Mahatma Ghandi.


Re: Newlines in Textarea from/to database

Posted by Jürgen Haas <no...@gmx.de>.
Hello,

> How can I send the "newline" characters from an HTML textarea (when you
> press enter in a textarea, you get a new line) to my database and get the
> back out ?

I am using <PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96> and
new lines work fine for me without any further options.
Anyway, though I don't think it has influence on the "\n"s in the textarea,
I'd like to mention that I use accept-charset="ISO-8859-1" in my form-tag and
the database I am currently working on is ISO-8859-15 (LATIN9).

Have you ever checked if the request parameter is transmitted properly by
putting a textarea on the second page and printing out the value of the request
parameter in it?
(<textarea name="textarea2"><xsp-request:get-parameter
name="textarea1"/></textarea>)

Bye
Jürgen


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org