For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Re: [PHP-DB] Trouble with Text Area









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Trouble with Text Area
Stut

2007-10-31, 9:59 pm

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/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com