Re: Trouble with Text Area
| From: | Stut | Date: | Wed, 31 Oct 2007 23:14:50 +0000 |
| Subject: | Re: Trouble with Text Area | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44284@lists.php.net to get a copy of this message | ||
Stephen Sunderlin wrote:
When I put his line outside of the php tags I get the correct size: <textarea name='name' value='$String' rows='10' cols='10'></textarea><p>That's not how you specify the value of a textarea. It should be between the tags like so... <textarea name="name" rows="10" cols="10">$String</textarea> And I'm assuming that $String has already had htmlentities run on it.
When I put this line inside the php tags the size comes out about 2 rows by 10 columns regardless of the value of rows and cols.Check the source of the page being created. I'm guessing $String contains a single quote and then a sequence of characters that is causing this behaviour.
Any ideas on how to format this would be greatly appreciated. The mySQL db column TYPE I am calling is Blob not null.-Stut -- http://stut.net/