<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代码)
提交成功以后,我想转到浏览页面,就是看到刚才所提交的数据,问题怎么能正确的显示出来。

解决方案 »

  1.   

    window.history.go(-1); 不行吗
      

  2.   

    你不是要返回上一页吗。处理页面这样写:
    echo "<script>window.history.go(-1);</script>";
      

  3.   

    print_r($_POST['Purview']);
      

  4.   

    在浏览页面再把数据从数据库里读出来,再用js勾选checkbox。var tt='你从数据库里读出的值';
    $('input[vlaue='"+tt+"']').attr('checked',true);
      

  5.   

    Parse error: parse error, unexpected '(', expecting T_VARIABLE or '$' in E:\www\liuyan\xiangqing.php on line 20
      

  6.   

    $_POST['Purview'] 都是在这个数据里面 
    用print_r($_POST['Purview']);  看看
      

  7.   

    echo "<script>window.history.go(-1);</script>"; 这样做就可以啦 写在就提交成功的后面
      

  8.   

    到提交页面 输出就可以了!!print_r($_REQUEST['Purview']);就这么简单,别的不要多想!