你可以将post到的页面处理之后跳转一下(本页或其他页面)

解决方案 »

  1.   

    It is caused mostly because the php page operates posted/geted data from another page,for example,the check login page.
    You can write the php file without outputing anything to the browser,just jumping to another page when finishing dealing with the posted/geted data.It is just a simple php promgram file without any html tags.
      

  2.   

    2楼的同仁,什么意思?比如A页面点击一个按钮后传递一个变量到B页面,B页面根据这个变量显示相应的内容。。这么叫处理下再跳转啊%……
      

  3.   

    比如A页面点击一个按钮后传递一个变量到B页面,B页面根据这个变量显示相应的内容。。--------------------------------------
    you can do this:
    page A post data to page C,page C is like:
    <?php
    ....//operate the data
    header('location:B.php');
    ?>//notice:there is not any html tags in page Cthen when you back to A from B,the browser won't have any warnings.
      

  4.   

    A页面点击按钮将数据发送到B页面
    B页面
    <?
       //处理从A页发送过来的数据
       //处理完后跳转到C页面或者仍然跳转到B页面,如:
    echo "<script>location.href='c.php';</script>";?>
      

  5.   

    赞同楼上们的说法,
    大家的意思是让你提交完表单后做一个页面跳转,用HEADER定向或
    JS的echo "<script>location.href=\"pageB.php\"</script>";
    尽可能的不要回到提交的页面
      

  6.   

    楼上几位意思还不是很明白,我就举个例子好了,页面A里的一个表单按钮是这样的,点击后跳到叶面B。。也就是query_exam_detail.php,同时传过去3个变量吧<form name=\"query$rowNum\" method=\"post\" action=\"query_exam_detail.php\">";
    echo "<input type=\"hidden\" name=\"id\" value=\"$row[0]\">";
    echo "<input type=\"hidden\" name=\"pnum\" value=\"$row[4]\">";
    echo "<input type=\"hidden\" name=\"classid\" value=\"$row[3]\">";
    echo "<input type=\"submit\" name=\"Submit\" value=\"查询\">";
    echo "</form>
    然后再页面B里,也就是query_exam_detail.php里开头有以下代码:$_SESSION["contest_id"]=$_POST['id'];
    $classid=$_POST['classid'];
    $_SESSION["pnum"]=$_POST['pnum'];并且这个页面是要用到变量$classid的。
    现在就是如果在页面B的时候点后退就会发生错误请问怎么改呢
      

  7.   

    add one page between page A to page B.....and the page should not have html tags as <html><head>..</head><body>...</body></html>it only contains <?php....?>
      

  8.   

    就算建立一个中间页面,但$_POST['classid']还是要带过去的啊,因为页面B要用到这个的。。纯html页面是无法传递post和session变量的吧这个问题是不是php本身的问题?
      

  9.   

    在 B 页面中使用
    header("Location: xxx.php?classid=$classid");