Perl: the Markov chain saw | |
PerlMonks |
Re: Textarea boxes in CGIby dws (Chancellor) |
on Jun 17, 2003 at 18:58 UTC ( [id://266595]=note: print w/replies, xml ) | Need Help?? |
Does anybody know if CGI textarea boxes do newlines msdos style or unix style?
Browsers tend to send both a carriage-return and a linefeed. I always do on whatever comes back from a text area. (Caveat: This might not be the right thing to do if you're on a Mac.) Another common problem is to emit instead of The former adds newline on your behalf. The latter preserves the original text (except for newline conversion).
In Section
Seekers of Perl Wisdom
|
|