Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if multiple inputs are empty

foreach ($_POST as $key => $value) {
    if (empty($value)) {
        //Code to run
    }
}
 
PREVIOUS NEXT
Tagged: #php #check #multiple #inputs #empty
ADD COMMENT
Topic
Name
8+7 =