Php form - breaks

Hey, I have a PHP form, that will enter text into a database.

Is there anyway, that I can automaticly convert breaks into <br /> tags

Breaks as in

This

to

this


If I were to put that into the form, and submit, it would add to the database and then show out on the news script as -

Breaks as inThistothis

No problem. Glad I could help.


   $yourstring = nl2br($yourstring);

Doesnt work.

My bad it does work… Thank you for the fast reply.