Page 1 of 1

Turning a Blob Field into multiple lines

Posted: Tue Jul 04, 2006 11:48 am
by PastorHank
I have a blob field that I use to store a large amount of text, I need to be able to read the string and turn it into several line, (right now it shows up as one long string), would someone please point me to a function that I can use to turn this string into several 80 character lines. I need to be able to edit it.

thank you

Posted: Tue Jul 04, 2006 11:50 am
by feyd

Posted: Tue Jul 04, 2006 12:58 pm
by PastorHank
I didn't state the problem correctly.

Code: Select all

echo "<input type=textarea wrap='hard' cols='70' rows='7' name='journal_entry' value='$journalentry'>";
I've also tried

Code: Select all

echo "<input type='textarea' wrap='hard' cols='70' rows='7' name='journal_entry' value='$journalentry'>";
Neither works. It generates an input field that is a single row and approximately 25 characters. I can't get it to expand with the scroll bars, all the text shows up but in a single line.
I've also tried it with a soft wrap and with no wrap

Posted: Tue Jul 04, 2006 1:25 pm
by feyd
<textarea> is a separate tag from other <input> tags.

Posted: Tue Jul 04, 2006 1:35 pm
by PastorHank
Is it still something I should use? and if so, where can I find the proper syntax for it, or is there another <input> tag that would work better for what I'm trying to accomplish?