faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 11 people (27%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can I echo line breaks inside a textarea? \n and \r\n just print as text.

Jul 19th, 2001 22:04
Steph Bairey,


I'm using:

if(strstr($var,"<br>")) { $var = str_replace('<br>','&#013;', $var);}

Will that cause problems for different platforms?