Sunday, 18 August 2013

textarea does not showing default text

textarea does not showing default text

i've a textarea which get's the default value from a database. for this my
code is:
echo "<textarea readonly='true'>".$row1['description']."</textarea>";
for this code the value isn't coming. my output is like this.

i thought it may be some database problem. but when i write this:
echo "<textarea readonly='true'
placeholder='".$row1['description']."'></textarea>";
the output shows the data.

when the database data is small then placeholder is ok. but if data will
be large then it'll not show a scroll. anybody can help me.

No comments:

Post a Comment