将数据从mysql数据库拉入textarea

时间:2013-12-30 11:52:13

标签: php mysql html5

如何编辑这行代码,以便将数据从MySQL数据库提取到HTML 5表单进行编辑

<td width="276">
<textarea cols="50" rows="5" name="reasons" value="<?php echo $rsns;?>" placeholder="E.g. To pursue further studies" /></textarea>
</td>

1 个答案:

答案 0 :(得分:1)

for textarea

<textarea><?php echo .. ;?></textarea>

所以改变

<td width="276"><textarea cols="50" rows="5" name="reasons" value="<?php echo $rsns;?>" placeholder="E.g. To pursue further studies" /></textarea></td>

<td width="276"><textarea cols="50" rows="5" name="reasons"  placeholder="E.g. To pursue further studies"><?php echo $rsns;?></textarea></td>