Hi guys,
I think I have found a simple solution for my text format problem.
I am using PHP with MYSQL(formatting is independent of DB).
I have a form field of type TEXT. The contents of this field are being inserted into a table.
Now when I retrieve the data from the database and show it in a Text box (form field) all the formatting is fine, just like prior to the insertion into a table.
However, if I display the retrieved data as normal text in html (say between <p>, paragraph tags) all the formatting is lost.
To fix this, I enlosed the data retrieved from the DB in <pre></pre> .....preformatted text and displayed it. It worked just great.
Let me know if you have any questions.
I think I have found a simple solution for my text format problem.
I am using PHP with MYSQL(formatting is independent of DB).
I have a form field of type TEXT. The contents of this field are being inserted into a table.
Now when I retrieve the data from the database and show it in a Text box (form field) all the formatting is fine, just like prior to the insertion into a table.
However, if I display the retrieved data as normal text in html (say between <p>, paragraph tags) all the formatting is lost.
To fix this, I enlosed the data retrieved from the DB in <pre></pre> .....preformatted text and displayed it. It worked just great.
Let me know if you have any questions.