Jump to content
Larry Ullman's Book Forums

Edit User - Updating - Text Areas

Recommended Posts

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:




<textarea name="description" rows="5" cols="40" value="' . $row[7] . '" />




Thanks Marie

Link to comment
Share on other sites

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.

  • Upvote 2
Link to comment
Share on other sites


  • Create New...