Page 1 of 1

How to output textarea field???

Posted: Mon Jun 07, 2004 3:31 am
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?!!!

Posted: Mon Jun 07, 2004 3:34 am
by Wayne
Last time I checked HTML conventions textareas where done like this!?

Code: Select all

<textarea>VALUE</textarea>

Posted: Mon Jun 07, 2004 8:11 am
by vigge89
haha, you'd better sutdy some more :wink:
(of course it's <textarea>value</textarea>