Re: [PHP] text areas and line brakes

2005-06-22 Thread Richard Lynch
On Tue, June 21, 2005 8:59 am, Sunny Boy said: if someone writes something in a text box, how would I convert a line break in the text area to echo a br /? I think i'll have to get the \n and convert it. can anyone tell me? While the two solutions provided so far are Really Nifty (tm) both

[PHP] text areas and line brakes

2005-06-21 Thread Sunny Boy
if someone writes something in a text box, how would I convert a line break in the text area to echo a br /? I think i'll have to get the \n and convert it. can anyone tell me? Thanks. sunny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text areas and line brakes

2005-06-21 Thread Dotan Cohen
On 6/21/05, Sunny Boy [EMAIL PROTECTED] wrote: if someone writes something in a text box, how would I convert a line break in the text area to echo a br /? I think i'll have to get the \n and convert it. can anyone tell me? Thanks. sunny -- PHP General Mailing List

Re: [PHP] text areas and line brakes

2005-06-21 Thread Jason Barnett
http://php.net/manual/en/function.nl2br.php -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] text areas and line brakes

2005-06-21 Thread Joe Harman
$YOUR_VARIABLE_CONVERTED = nl2br($YOUR_VARIABLE); On 6/21/05, Jason Barnett [EMAIL PROTECTED] wrote: http://php.net/manual/en/function.nl2br.php -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |