RE: [PHP-WIN] Text area
| From: | Mike Flynn | Date: | Tue, 30 Jan 2001 17:10:32 +0000 |
| Subject: | RE: [PHP-WIN] Text area | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5265@lists.php.net to get a copy of this message | ||
At 08:24 AM 1/30/01 +0200, you wrote:
>It does work on the face of it. But when you
>query the database the field is empty even if you filled
>it in.
>
Try something like this...
<?php
print " <textarea cols=\"60\" rows=\"7\"
name=\"LongDesc\">";
if ($editing) {
print "$desc_long";
}
print "</textarea>\n";
?>
Note that there's no blank lines between the <textarea> and </textarea>
tags besides those present in the $desc_long string that was retrieved from
the database. That avoids adding undesired blank lines and spaces.
-Mike
Come the millennium month 12, in the home of the greatest power,
the village idiot will come forth to be acclaimed the leader.
(Nostradamus, 1555)
I do know I'm ready for the job.
And, if not, that's just the way it goes.
(George W. Bush, 2000)