把 $HTTP_POST_VARS["processNextItem"] 打出来看看是什么东东

解决方案 »

  1.   

    看过了,是这个addAnotherd没错啊
      

  2.   

    <?phpfunction callback($buffer) 
    {
      // replace all the apples with oranges
      return (str_replace("apples", "oranges", $buffer));
    }ob_start("callback");?><html>
    <body>
    <p>It's like comparing apples to oranges.
    </body>
    </html><?phpob_end_flush();?>
      

  3.   

    function Another($buffer)

    if ($HTTP_POST_VARS["processNextItem"]=="addAnother")
    {header("Location: newItem.php?mode=new&name=");
    }
    else
    if ($HTTP_POST_VARS["processNextItem"]=="editAnother")
    {
    header("Location: ".$PREVPAGE_session.".php");
    }
    }
    这个函数执行时什么都不做
    因为$HTTP_POST_VARS不是自动全局变量,在函数内为空。
    所用的条件都不能满足
      

  4.   

    解决了,只因多了几个<?php ?>怪!合并后就可以了!