|
Subject:
|
Displaying textarea content to html table
|
|
Posted By:
|
keithc
|
Post Date:
|
10/29/2006 8:15:30 PM
|
Have php pulling result and echoing rows to table, problem i have is when outputting data submitted from a textarea within a form is i get one line and no wrap. Not sure how to get this output formatted properly
|
|
Reply By:
|
ciderpunx
|
Reply Date:
|
10/31/2006 4:37:07 PM
|
The quicker way is probably just to use <pre> tags.
Or do a little regular expression like:
preg_replace('/$/','<br />',$mytext)
HTH
-- Don't Stand on your head - you'll get footprints in your hair http://charlieharvey.org.uk http://charlieharvey.com
|
|
Reply By:
|
talk2leo
|
Reply Date:
|
12/1/2006 2:12:45 AM
|
u can use
stripslashes($mytext)
nl2br() also
regards
|