jpve
asked on
detecting new lines in textarea's using php
I'm sure this has been asked before but I haven't been able to find a solution. Basically, a user fills out a textarea and they can enter breaks by pressing the Enter key. How do I use str_replace() to detect the newline characters and replace them with a <br/> so that when it goes into and gets pulled out of the db it will be displayed correctly by the browser?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER