I have a foreach loop to check if there is any empty post but i get 3x "empty" i only want to return 1 message if any post data is empty I have this PHP code.
if (isset($_POST["registreer"]))
{
unset($_POST["registreer"]);
foreach ($_POST as $input => $value)
{
if (empty($_POST[$input]))
{
echo "empty";
}
}
}