Forum Moderators: coopster
Yes, that solution will indeed work. You could also use str_replace() [php.net].
$text = str_replace("\r\n", '#', $text);
Now, I don't know offhand exactly how newlines are transmitted in post data, but I'm guessing that they just use whatever the OS uses (menaing that your code won't work if the client is on a Mac or *nix). Easy to test - get someone on a Mac to try it and see how it works.
Tom