if(错误){
header("location:特定页");
}讲的具体点。header之前不要发送http内容

解决方案 »

  1.   

    最好定义一个函数,然后在页面include进去
    比如定义一个用户状态动作函数action() 
    如果传递得变量为error(你自己传递)header()转到你得叶子
      

  2.   

    在httpd.conf里设置ErrorDocument 404 /error_404.php
    ErrorDocument 505 /error_505.html
      

  3.   

    if(错误){
    header("location:特定页");
    }
    我想问的是如何知道在错误状态?