0

添加我的回声语句时,文本区域框消失了。这是代码的选择:

<?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 } ?>

有谁知道是哪一段代码导致了这个?

4

1 回答 1

2

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

 <textarea name="abstract" type="text" id="abstract" size="600"><?php echo $row_settings['abstract']; ?></textarea>
于 2012-04-23T12:49:28.683 回答