Query not appearing in Textarea, but will outside of the textarea...

I've got a line returned from a query that will not return while inside of a text area, but will appear if queried for outside of the textarea.  Is my formatting within the textarea properties incorrect?
echo "<tr bgcolor=\"#DCDCDC\" align=\"left\"><td><b>Description:</b></td> ";
			echo "<td><textarea rows=\"5\" cols=\"20\" name=\"description\" value=\"".$row['description']."\" wrap=\"physical\" ></textarea>";
			echo $row['description'];
			echo "</td></tr>";

Open in new window

tru504187211Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Beverley PortlockCommented:
If you do

echo htmlspecialchars( $row['description'] );

what does the output look like?
0
Ray PaseurCommented:
Try encapsulations...
echo "<tr bgcolor=\"#DCDCDC\" align=\"left\"><td><b>Description:</b></td> ";
                        echo "<td><textarea rows=\"5\" cols=\"20\" name=\"description\" value=\"{$row['description']}\" wrap=\"physical\" ></textarea>";
                        echo $row['description'];
                        echo "</td></tr>";

Open in new window

0
tru504187211Author Commented:
Thanks guys, but neither display anything...
0
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Ray PaseurCommented:
Post a link to the pages in question - I need to see the moving parts.  Thanks, ~Ray
0
tru504187211Author Commented:
Ray Paseur:  Right now, it's only accessable through the internal web site...

Pretty much, it simply will not display.  No error messages or anything though...
0
Beverley PortlockCommented:
AT the top of the script add

error_reporting( E_ALL );

Does it produce any errors?
0
tru504187211Author Commented:
bportlock:  No errors reported...
0
Ray PaseurCommented:
OK, please post the query script that loaded the data into $row
0
Ray PaseurCommented:
Also, please post the revised scripts that you have tried with no luck, and please post the output of one of the scripts where the data appears, but not in the textarea.  If you have any CSS that styles textarea, please post that, too.  Are you using tinyMCE or FCKEdit?  Or is this a "virgin" textarea that is not affected by javascript?  Thanks, ~Ray
0
gamebitsCommented:
You cannot use value= with textarea, you need to put it between the tags <textarea></textarea>

echo "<td><textarea rows=\"5\" cols=\"20\" name=\"description\" wrap=\"physical\" >".$row['description']."</textarea>";
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
@gamebits: Good eye!  It this had been posted in the HTML section I might have caught that.
0
tru504187211Author Commented:
THANKS!  I've been banging my head on the desk for a while now over that one!  Thanks again!
0
gamebitsCommented:
Glad to help, thanks for the points and the grade.
0
Beverley PortlockCommented:
Goes to show, try the simple stuff first!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.