Re: [PHP] Line Breaks in textarea
On Thu, 28 Jun 2001 04:44, Nathan Cook wrote: Hello- I am selecting a value from a blob field in a mysql db. The value looks like this: Test 12...3 \r \n br %0%D Test When I print that value in a TEXTAREA$value/TEXTAREA -- The textarea returns exactly what you see above. I am trying to get it to display a line break (so that I can store the line breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [EMAIL PROTECTED] You might want to make your textarea tag thus: TEXTAREA WRAP=VIRTUAL$value/TEXTAREA to show any EOLs as line breaks. Cue RANT from Richard Lynch on TEXTAREA :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Spell chequers dew knot work write. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Line Breaks in textarea
Hello- I am selecting a value from a blob field in a mysql db. The value looks like this: Test 12...3 \r \n br %0%D Test When I print that value in a TEXTAREA$value/TEXTAREA -- The textarea returns exactly what you see above. I am trying to get it to display a line break (so that I can store the line breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Line Breaks in textarea
try the function nl2br($value) regards, Alva Chew Nathan Cook [EMAIL PROTECTED] wrote in message 00cf01c0ff3d$72992160$[EMAIL PROTECTED]">news:00cf01c0ff3d$72992160$[EMAIL PROTECTED]... Hello- I am selecting a value from a blob field in a mysql db. The value looks like this: Test 12...3 \r \n br %0%D Test When I print that value in a TEXTAREA$value/TEXTAREA -- The textarea returns exactly what you see above. I am trying to get it to display a line break (so that I can store the line breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]