Marie Posted November 27, 2012 Share Posted November 27, 2012 Hello, I have been wrestling with textareas in one way or another for quite some time. I would like to add a text area within the Edit User form however, when I update the information from the data base does not appear in the text area. The information does appear in the other fields. This is the last piece of code that I tested: <p><strong>Description:</strong></p> <textarea name="description" rows="5" cols="40" value="' . $row[7] . '" /> </textarea></p> Thanks Marie Link to comment Share on other sites More sharing options...
HartleySan Posted November 27, 2012 Share Posted November 27, 2012 Actually place the content within the textarea tags. For example: <textarea name="description" rows="5" cols="40">' . $row[7] . '</textarea> Also, be careful with your markup. You have an unnecessary closing p tag and you're closing your opening textarea tag, which is wrong. 2 Link to comment Share on other sites More sharing options...
Marie Posted November 28, 2012 Author Share Posted November 28, 2012 Thank you, That worked. I guess my code was getting sloppy. Now to figure out how to add a character counter. Link to comment Share on other sites More sharing options...
HartleySan Posted November 28, 2012 Share Posted November 28, 2012 You'll have to use JS for the character counter. I imagine there are any number of tutorials online about that, and it's pretty easy anyway. If you get stuck, please ask a question on the Modern JS board. Thanks. 1 Link to comment Share on other sites More sharing options...
Recommended Posts