echoing text field value in a while loop
<pre><code>echo " &lt;table bgcolor='#d3fcfe'   align='center'&gt;  ";

while ($row = mysql_fetch_array($result)) {

echo '&lt;/div&gt; &lt;tr onmouseout="this.bgColor=\'#d3fcfe\';"  onmouseover= "this   .bgColor=\'#fffdcd\';" &gt;  ';
 $numq2=$row['username'] ;


{
echo '&lt;td &gt;&lt;div class="iddiv"&gt; &lt;input name="" type="text" value="$numq2" /&gt;   &lt;div&gt;    &lt;/td&gt; ';
}

echo '  &lt;/table&gt;';
}
</code></pre>

<p>i want to output $numq2 Var's data into the value of the textfield.but something is wrong with my code.it prinout   the value of textfield as "$numq2".what's wrong with my script? </p>
