Posted on 2003-11-18
I had successfull when inserting/viewing longtext data format from/in to mySQL database.
But i had a problem when viewing it in html table.
-No paragraph, write in 1 line only without braked line.
-The table width pushed by the text, then the table to be wider. (My page design damaged by that)
My question is :
1. How to locking the table width, so the text will automatically break lined ?
Inserting "<br>" text when inputting data in form textarea annoying me.
So, give me other solution.
2. How to prevent someone to not inserting html code to textarea form ?
Then, all text will be converted to text format.
I use this html form to send one paragraph of text :
<textarea name=news rows=60 cols=100%></textarea>
I use this php code to viewing $news :
print("<table width=50% border=0 cellpadding=0 cellspacing=0><tr><td>");