Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
Marie

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:

 

<p><strong>Description:</strong></p>

 

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

 

</textarea></p>

 

Thanks Marie

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...