Current location: Hot Scripts Forums » Programming Languages » PHP » populating a Textarea from mysql


populating a Textarea from mysql

Reply
  #1 (permalink)  
Old 07-02-03, 03:22 PM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Question populating a Textarea from mysql

I am trying to populate the input field in a form from the info in a table from mysql. This is used for editing the information in the table record. I can manage all the fields except for the textarea. Has someone got a way to populate a textarea. Thanks

Jack
Reply With Quote
  #2 (permalink)  
Old 07-02-03, 06:06 PM
Gautier_Girard Gautier_Girard is offline
New Member
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Jack,

What problem do you encounter when trying to populate your textarea ? Do you have error messages ?

Regards,
Gautier.
Reply With Quote
  #3 (permalink)  
Old 07-02-03, 06:37 PM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
No error messages, just can't get any information to show up in the textarea box.
Reply With Quote
  #4 (permalink)  
Old 07-02-03, 07:31 PM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Just call me slow

My problem is, I was trying to populate the textarea just like I do with a text field:

<textarea name=\"feedback2\" rows=\"20\" cols=\"25\" wrap=\"virtual\" value=\"$feedback\"></textarea>

Changed to:

<textarea name=\"feedback2\" rows=\"20\" cols=\"25\" wrap=\"virtual\">$feedback</textarea>

Problem solved. Hope this helps someone else.

Jack
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Forum/Board - MySQL = Possible? cipher PHP 7 10-07-03 03:42 AM
great product for dumping/recovering MySQL databases Dave Brown General Advertisements 1 10-03-03 07:40 AM
mysql to access aspuser25 Database 2 09-16-03 11:01 AM
MySQL with PHP question. HELP for a newbie kenfused PHP 3 08-02-03 12:53 AM


All times are GMT -5. The time now is 09:04 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.