?
Solved

Need help outputting data into textarea fields

Posted on 2011-05-01
3
Medium Priority
?
211 Views
Last Modified: 2012-05-11
Hi,
    I have a form which performs a lookup in my database, and displays the logged in users details in textboxes and textareas.  Textareas due to the length of the text.  The text boxes display the data fine with:

value='".$row["dayswork"]."'

However this same method does not work for the textarea fields.  How can I get the text to appear in the textareas.  There are multiple different textareas?

Many thanks

Damian
0
Comment
Question by:damianb123
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 35501293
The echo needs to go in between the open and close tags in a 'textarea'.
<textarea rows="6" name="msgText"><?php echo $message; ?></textarea>

Open in new window

0
 

Author Closing Comment

by:damianb123
ID: 35501402
Excellent, thanks for your quick response.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 35501589
You're welcome, and thanks.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question