这个就是了。相当于ASP的response.redirect(“http://www.sex.com”)
header("http://www.sex.com");结帖给分吧LZ!

解决方案 »

  1.   

    不好意思。想分心太急header("Location:http://www.sex.com");
      

  2.   

    就写onclick = " response.redirect(XXX)" ? 我写了,但是不对呢。= =??
      

  3.   

    是写onclick = " header(XXX)"吗?
      

  4.   

    header("Location: http://www.domain.com");查一下header()吧~~
      

  5.   

    调用前不能有任何输出,或用输出缓冲.......
    在PHP源程序里用啊!
      

  6.   

    楼上说的对,header前不能有任何输出