Link to home
Start Free TrialLog in
Avatar of jpve
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
Avatar of JimQode
JimQode

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jpve
jpve

ASKER

Thanks a ton guys.