Alternative to “header” for re-directs in PHP

前端 未结 8 1633
旧时难觅i
旧时难觅i 2020-12-05 06:16

I am working on a project and I am required to run my program on someone else\'s webserver. It is a pretty simple login page that I am having the problem with. The program

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 06:41

    Redirecting via headers is illegal if any content has come through. Take out all the echos and it should work. If you do want there to be a message shown to the user before the redirect, you'll likely have to do it with JavaScript via location.href.

提交回复
热议问题