如何编辑这行代码,以便将数据从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>
答案 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>