Re: [PHP] text formatting

2001-04-19 Thread James, Yz
Hi George, Yes. Use nl2br(); which converts line breaks (\n) to html break tags (). You're better doing it when you pull data out of your database rather than doing it as it goes in (if you're using a database in the first place). Format is as follows : $string = nl2br($string); James. >

[PHP] text formatting

2001-04-19 Thread george
I have a text area which the client types information into, but is it possible to format the text for example if the user hits enter ,then it will place a line break there, TIA george -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition