Hallo,
ich habe es nun fast geschafft. Bekomme es aber NICHT hin sollte ein Fehler sein dass mein $_POST['montagvon']
auf leer gesetzt wird.
$time = $_POST['montagvon'];
if ($_POST['montagvon'] != (preg_match("/^(\d{1,2}):(\d{1,2})$/", $time, $matches) && ($matches[1] <= 24 && $matches[1] >= 0) && ($matches[2] <= 59 && $matches[2] >= 0) ))
$errors[] = "Fehler";
}
Kann mir hier vielleicht jemand helfen?