I'm writing a text file for flash via a php form.
I want to enable my user to use carriage returns in a form and to replace them with <br>'s. But in flash the variable must be a string on a single line, or else it adds linebreaks, and they're huge, like the equivalent of doing two or three <br>'s. So I went-
$textAreaStr = str_replace(Chr(13), "<br>", $textAreaStr); but instead of
blah blah blah<br>blah blah<br>
I got
blah blah blah<br>
blah blah<br>
etc. How do I actually get rid of the carriage returns? Any ideas?