Why is my page not redirecting on success

前端 未结 3 957
星月不相逢
星月不相逢 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:25

    Take out the !. That should fix it: if you enter a valid email you are negating true (which becomes false).

    Keep in mind that when you use isset() it returns a boolean (true or false)

提交回复
热议问题