On Sat, Feb 23, 2002 at 03:07:15PM +1100, Andrew O'Brien wrote:
> On Fri, Feb 22, 2002 at 06:37:33PM -0800, Scott Chapman wrote:
> > I'm finding that my form data is not preserving carriage returns. When a user
> > has a text area to fill in that is multiple lines, carriage returns are not
>staying
> > in the $fdat{fieldname}.
> >
> > If I take the data that is input on the form and on the next page output it
> > again, it shows up as spaces where I pressed Enter.
> >
> > Why is this and can I make it keep these carriage returns?
>
> The "wrap" attribute of the textarea tag is the one you want.
>
> set it to "hard" to wrap at the display boundaries and at user entered
> return characters.
>
> set it to "soft" to wrap only at user entered return characters
> (the display will still wrap but the lines will be sent as long
> strings)
>
> The default is off. I usually set it to "hard" because I'm usually
> saving the output somewhere and so having a maximum column width is
> useful.
Whoops. Forgot to mention that
http://www.home.zonnet.nl/robschluter/htmltaglist/index_old.html
gives a comprehensive listing of all tags and attributes.
--
Andrew O'Brien
Senior Engineer email: [EMAIL PROTECTED]
Switch Online Group Pty Limited phone: +61 2 9299 1133
ABN 89 092 286 327 fax: +61 2 9299 1134
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]