Is there a simpler function to something like this:
if (isset($_POST[\'Submit\'])) {
if ($_POST[\'login\'] == \"\" || $_POST[\'password\'] == \"\" || $_P
I did it like this:
$missing = array();
foreach ($_POST as $key => $value) { if ($value == "") { array_push($missing, $key);}}
if (count($missing) > 0) {
echo "Required fields found empty: ";
foreach ($missing as $k => $v) { echo $v." ";}
} else {
unset($missing);
// do your stuff here with the $_POST
}