formatting question
Posted: Thu Jan 02, 2003 11:39 am
hey,
i am utilizing a <textarea> tag to input data into a text type column in a DB. this is so that people can cut and paste documents. my problem is that when i utilize a
<pre>
</pre>
if they did not use a carriage return when typing or cutting and pasting, then the lines will continue to the right forever even when i utilize the width attribute for the pre tag. if i just have the data show up in another textarea tag for viewing it looks great!!!
any suggustions on how to format this so that it does not run on but actually wraps the text in the appropriate area???!?
thanx for any help
soshea
i am utilizing a <textarea> tag to input data into a text type column in a DB. this is so that people can cut and paste documents. my problem is that when i utilize a
<pre>
Code: Select all
<?=$data[document]?>if they did not use a carriage return when typing or cutting and pasting, then the lines will continue to the right forever even when i utilize the width attribute for the pre tag. if i just have the data show up in another textarea tag for viewing it looks great!!!
any suggustions on how to format this so that it does not run on but actually wraps the text in the appropriate area???!?
thanx for any help
soshea