View Full Version : insert line breaks

03-21-2003, 09:10 PM
I have a simple form with a text area where people are going to be entering a lot of line breaks. then i post the form and it generates html code. How can i get it to recognize there is an enter 'break' in there and have it add a <br>

03-21-2003, 11:20 PM
$x = nl2br($x);