<tr>
<td><input name="Purview[]" type=checkbox value="1" />音乐</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="2" />体育</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="3" />旅游</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="4" />影视</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="5" />网络</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="6" />游戏</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="7" />美食</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="8" />购物</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="9" />时尚</td>
</tr>
以上是表单提交页面的的复选框html代码
$s = implode(',',$Purview1);(这是提交数据库的php代码)
提交成功以后,我想转到浏览页面,就是看到刚才所提交的数据,问题怎么能正确的显示出来。
<td><input name="Purview[]" type=checkbox value="1" />音乐</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="2" />体育</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="3" />旅游</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="4" />影视</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="5" />网络</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="6" />游戏</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="7" />美食</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="8" />购物</td>
</tr>
<tr>
<td><input name="Purview[]" type=checkbox value="9" />时尚</td>
</tr>
以上是表单提交页面的的复选框html代码
$s = implode(',',$Purview1);(这是提交数据库的php代码)
提交成功以后,我想转到浏览页面,就是看到刚才所提交的数据,问题怎么能正确的显示出来。
echo "<script>window.history.go(-1);</script>";
$('input[vlaue='"+tt+"']').attr('checked',true);
用print_r($_POST['Purview']); 看看