isset() function is returning true even when item is not set

后端 未结 4 686
独厮守ぢ
独厮守ぢ 2020-12-04 02:42

Here is my code. For some reason, if I submit the form without placing and passwords in, it still creates the database entry. There are some comments scattered throughout th

4条回答
  •  庸人自扰
    2020-12-04 03:32

    isset checks that the variable is set - in this case it is set to '' (an empty string). Try using empty() as well.

提交回复
热议问题