in reply to Replacing new lines in multi line text box form fields with <br>.

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.

  • Comment on Re: Replacing new lines in multi line text box form fields with <br>.