在添加echo语句时,文本区域框消失了。下面是代码的选择:
<?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 } ?>有没有人知道哪段代码在警告这一点?
发布于 2012-04-23 20:49:29
您的语法不正确。<textarea>没有value属性。您应该将值放在开始和结束<textarea>标记之间。
<textarea name="abstract" type="text" id="abstract" size="600"><?php echo $row_settings['abstract']; ?></textarea>https://stackoverflow.com/questions/10280850
复制相似问题