Check all $_POST Variable at once

后端 未结 3 1736
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 16:30

instead of checking all my post variables from a form one at a time is there any way to run one check to atleast verify that they are not empty something like



        
3条回答
  •  伪装坚强ぢ
    2021-01-15 17:16

    Can't be done like the way you're thinking (as PHP has no way of knowing what values there should be).

    But you could it like this:

    
    

提交回复
热议问题