- From: Walter Ian Kaye <walter@natural-innovations.com>
- Date: Fri, 11 Apr 1997 15:34:20 -0700 (PDT)
- To: www-html@w3.org
On Fri, 11 Apr 1997, Aviram Carmi wrote:
> You are correct about the TEXTAREA, the reason that my TEXTAREA is not
> working (in addition to that other field), is that the TEXTAREA is being
> submited to a database using another form, and then encoded into a hidden
> input field just like that other field.
>
> I.E. I have a database calculation that looks like:
> "<INPUT TYPE=TEXT NAME=COMMENTS VALUE="&comments&">".
>
> Now since the comments field originated as a TEXTAREA field it contains
> embeded <CR> which get promptly striped by MSIE....
>
> The other field is actually encoded as
>
> <INPUT TYPE=TEXT NAME=ORDER VALUE="line1<CR>
> line2<CR>
> ">
>
> with the carriage return hard coded into the HTML.
>
> trying to encode the above as:
>
> <INPUT TYPE=TEXT NAME=ORDER VALUE="line1%0D%0Aline2%0D%0A">
>
> results in the CGI getting line1%250D%0Aline2%250D%0A
TYPE=TEXT? Thought you said it was hidden. If you want to pass multiline
values across, you can't use type=text because that is designed to be a
single-line field. Try it with TYPE=HIDDEN.
__________________________________________________________________________
Walter Ian Kaye <boo@best.com> Programmer - Excel, AppleScript,
Mountain View, CA ProTERM, FoxPro, HTML
http://www.natural-innovations.com/ Musician - Guitarist, Songwriter
Received on Friday, 11 April 1997 18:38:31 UTC