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:
<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>
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.