Re: Help with MS IE

Walter Ian Kaye (walter@natural-innovations.com)
Fri, 11 Apr 1997 15:34:20 -0700 (PDT)


Date: Fri, 11 Apr 1997 15:34:20 -0700 (PDT)
From: Walter Ian Kaye <walter@natural-innovations.com>
To: www-html@w3.org
Subject: Re: Help with MS IE
In-Reply-To: <v02140b20af745da6842f@[204.176.111.4]>
Message-ID: <Pine.SGI.3.95.970411152533.14781A-100000@shellx.best.com>

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