Hallo,
if(preg_match("/^([1-9]{2})-([1-9]{2})-([1-9]{4})$/i",$data_datum) != 1)
wie wär es wenn du noch eine 0 einbaust?
Und dann kannst du auch direkt so schreiben if(!preg_match(...)) anstatt if(preg_match(...) != 1).
Grüße, Matze
Hallo,
if(preg_match("/^([1-9]{2})-([1-9]{2})-([1-9]{4})$/i",$data_datum) != 1)
wie wär es wenn du noch eine 0 einbaust?
Und dann kannst du auch direkt so schreiben if(!preg_match(...)) anstatt if(preg_match(...) != 1).
Grüße, Matze