Why is my page not redirecting on success

前端 未结 3 953
星月不相逢
星月不相逢 2021-01-24 07:57

I have some code that I was given; there is a $_POST variable (email) that shows as having content, yet when I test for it using isset, it fails. I don\'t understand w

3条回答
  •  死守一世寂寞
    2021-01-24 08:31

    The reason why the redirect with header("Location: ...") is not working is, that you already sent a header by echoing something.

    Any header-redirection won´t work afterwards.

提交回复
热议问题