Re: Textarea and PHP

From: Date: Sat, 29 Jul 2000 07:54:34 +0000
Subject: Re: Textarea and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8929@lists.php.net to get a copy of this message
Hi, Thanks a lot, It works now. Mark Lo ----- Original Message ----- From: Matt McClanahan <cardinal@dodds.net> To: Mark Lo <markloky@netvigator.com> Cc: php general <php-general@lists.php.net> Sent: Saturday, July 29, 2000 3:52 PM Subject: Re: [PHP] Textarea and PHP > On Sat, 29 Jul 2000, Mark Lo wrote: > > > Hi, > > > > I would like to display a message onto the textarea box loading from my database. > > i have tried the following code but the paragraph doesn't show up on my textarea box. > > Any ideas is welcome!! > > <? > > mysql_select_db("database"); > > $query="select * from table"; > > $result=mysql_query($query); > > $row=mysql_fetch_row($result); > > ?> > > <textarea row="5" cols="40" name="area" > > value="<?echo $row[0];?>" > > wrap="physical"> > > > > When I look at the page sources code, I can see the paragraph is being loaded into the > > value="xxxx...xxxxx.xxxx.xxx" , but it just doesn't show up on the textarea box itself. > > Because textarea is a very weird tag. Here's the trick: > > <textarea name="name"><? echo $value ?></textarea> > > Matt > >

« previous php.general (#8929) next »