What I'm trying to do SHOULD be simple.
I have a textarea ... And I want it to automatically have breaks in it.
Like this textarea message box I'm typing in right this second. I hit enter and when the message displays it will recognize I hit enter there.
Thanks ....
Hi,
try this:
$input = str_replace("\n", "<br>", $input);
where $input is the data from the textarea.
J.
Bingo, thanks.
If you have a function to edit that, the spaces will double. To solve that, put this in the editor:
$input = str_replace("<br>", 10, $input);