Code: Select all
str_replace('\r\n','<br>',$subject_value);
this will simply change a complete string.
as far as I know "\r\n" works normally in an textarea, so you won't have to replace those when creating a form.
You will only need to replace them when you're placing the code outside input fields in you're html-page. But than I allways manage with str_replace.
Hope this helps
Greetz Daan