为什么我不能编辑表单的文本字段?

Jul*_*anJ 3 html twitter-bootstrap

我有一个表单,我在Twitter Bootstrap 3中使用.表单将数据发布到mysql数据库,占位符值从数据库回显.我<textarea>在'bio'字段中使用了输入,但由于某种原因,占位符文本在这里表现不同.我无法删除光标并像其他字段一样编辑特定的单词.为什么是这样?

<div class="form-group">
    <form class="" action="" id="edit_profile" method="post">
        <label>
                Name
              </label>
        <input id="user_name" name="user_name" type="text" placeholder="<?php echo $user_name ; ?>" value="<?php echo $user_name ; ?>" class="form-control input-md" required="">
</div>
Email
</label>
<input id="user_email" name="user_email" type="text" placeholder="<?php echo $user_email; ?>" value="<?php echo $user_email; ?>" class="form-control input-md" required="">
</div>

Bio
</label>

<textarea style="width:100%" value="<?php echo $bio; ?>" placeholder="<?php echo $bio; ?>" name="bio"></textarea>
</div>
<input type="hidden" name="user_id" value="<?php echo $_SESSION['user_session'] ?>">

<button type="submit" class="btn btn-small btn-green pull-right" id="submit">

              Save
            </button>
</form>
Run Code Online (Sandbox Code Playgroud)

jun*_*kie 6

Textarea-text不会value=进入<textarea><?php echo $bio; ?></textarea>标签之间.

<textarea placeholder="This is a placeholder">This is the actual text</textarea>
Run Code Online (Sandbox Code Playgroud)

你不能拥有一个value=on,<textarea>因为无论你放入什么内容它都会保持不变<textarea>,因此无论你输入什么内容都不会改变任何东西.(尝试删除示例中的"这是实际文本")