是否可以将数据回显到文本框中并将此数据保存在MySQL上?
Here is the code:
<!-- score -->
<div class="score">
<b id='boldStuff_1'>0</b><br />
</div><!-- end score -->
//below is a textbox wherein I would like to echo the score
<input type="text" name="name">
你可以这样做
<input type="text" name="name" value="<?php echo $variable; ?>"/>
并保存在数据库中使用
$_REQUEST['name']