<input> with large text blocks
Posted: Thu Jan 14, 2010 8:48 am
I have created a update form (with tables) that displays all the information from a record in a database. In one particular field, the value may be a large amount of text (that I hope can be formatted later). The problem is with the size of the input box. I would like it to remain 4 columns wide, but expand downward (height) to fit the text. I do not want to set the style to be a certain width and height, because there may be more text than can fit in that box.
Also, I would like for my database (mysql) to be able to store the format of the text. I know it has something to do with <pre> but I can not figure out how to use it correctly. Here is the code:
Also, I would like for my database (mysql) to be able to store the format of the text. I know it has something to do with <pre> but I can not figure out how to use it correctly. Here is the code:
Code: Select all
<TR>
<TH>Comments</TH> // one column wide
<TD><input type="text" name="ud_comments" value="<?php echo $comments;?>"/></TD> // four columns wide and height to fit text
</TR>