首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >添加echo删除文本echo

添加echo删除文本echo
EN

Stack Overflow用户
提问于 2012-04-23 20:47:46
回答 1查看 47关注 0票数 0

在添加echo语句时,文本区域框消失了。下面是代码的选择:

代码语言:javascript
复制
<?php
$rs_settings = mysql_query("select * from thesis where id='$_SESSION[user_id]'");


        ?>

 <br><?php  while ($row_settings = mysql_fetch_array($rs_settings)) {?>
  <form action="thesis.php" method="post" name="regForm" id="regForm" >
    <div class="forms">

           Title of Proposed Thesis<span class="required">*</span>
      <textarea name="thesis_name" type="text" id="thesis_name" size="600"><?php echo
 $row_settings['thesis_Name']; ?></textarea>

            Abstract<span class="required">*</span>
          <textarea name="abstract" type="text" id="abstract" size="600"><?php echo 
$row_settings['abstract']; ?></textarea> 



      <?php } ?>

有没有人知道哪段代码在警告这一点?

EN

回答 1

Stack Overflow用户

发布于 2012-04-23 20:49:29

您的语法不正确。<textarea>没有value属性。您应该将值放在开始和结束<textarea>标记之间。

代码语言:javascript
复制
 <textarea name="abstract" type="text" id="abstract" size="600"><?php echo $row_settings['abstract']; ?></textarea>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10280850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档