detecting a new line with PHP?

  • Thread starter Thread starter Nay
  • Start date Start date
N

Nay

Guest
I have a HTML form, and when someone writes in a text area, I need to detect when they start a new line.

I know theres a way on the PHP processing page to do this - and I know its something relitavely simple.

All I need to do is replace new line with <BR>
 
google this to find the function you'll want to use (first link looks good)
http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=php+function+to+replace+a+char&spell=1

this to find what a newline looks like
http://www.google.com/search?hl=en&q=php+escape+characters&btnG=Google+Search&aq=0&oq=php+escape+ch

learn to use google and programming becomes much easier.
 
Back
Top