Keep It Simple, Stupid | |
PerlMonks |
Re: Replacing new lines in multi line text box form fields with <br>.by wfsp (Abbot) |
on Nov 26, 2004 at 09:16 UTC ( [id://410533]=note: print w/replies, xml ) | Need Help?? |
On processing form data, w3c says: "Line breaks are represented as "CR LF" pairs (i.e., `%0D%0A')." This can catch you out if you test the script on one platform (win) and run it on another (unix) because newlines are treated differently. It looks like tachyon's reply will catch both cases.
In Section
Seekers of Perl Wisdom
|
|