Re: Text area
| From: | Peter Ellis | Date: | Thu, 26 Aug 2004 19:03:35 +0000 |
| Subject: | Re: Text area | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35901@lists.php.net to get a copy of this message | ||
I suspect your return result looks something like
<input type=textarea rows=
rather than the full string, as you were expecting. You do need to
escape quotes, as they are special characters. Try:
function write_textarea()
{
return "<input type=textarea rows=\"5\" cols=\"70\"
name=\"\">";
}
I'm aware of the other replies to this message, but I'm being literal
and assuming you want that exact string returned, regardless of other
alternatives. HTH.
--
Peter Ellis - pellis@naturalaxis.com
Web Design and Development Consultant
naturalaxis | http://www.naturalaxis.com/
On Tue, 2004-08-24 at 16:43 +0800, Hafidz Abdullah wrote:
> Hi again, everyone.
>
> I also have a problem creating my text area. I meant to do a text area (measuring 5 rows by 70
columns) which accompanies the words: "First 50 words are free. Subsequent 50 words or part
thereof, $50 will be charged:"
>
> function write_textarea()
> {
> return "<input type=textarea rows="5" cols="70"
name="">";
> }
>
> Doesn't work. How can I make it work?
>
> Thanks & regards,
> Hafidz