How to output textarea field???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
augustus_emperor
Forum Newbie
Posts: 6
Joined: Tue Apr 20, 2004 9:20 pm

How to output textarea field???

Post by augustus_emperor »

Code: Select all

<?
$q = "select reason from temp3 where user_id=$user_id";
$r = mysql_query($q,$conn);
$row = mysql_fetch_array($r);
$reason = stripslashes($row[1]);
?>
<br><textarea align=center cols=85 rows=10 name="reason" value="<? echo $myrow["reason"]?>">
</textarea>
<br></table>

and the result the text area is blank?!!!
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

Last time I checked HTML conventions textareas where done like this!?

Code: Select all

<textarea>VALUE</textarea>
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

haha, you'd better sutdy some more :wink:
(of course it's <textarea>value</textarea>
Post Reply