• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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

0
tru504187211
Asked:
tru504187211
  • 5
  • 4
  • 3
  • +1
1 Solution
 
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 5
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now