Hello Max...
For public text fields I use the Valid function and the following as a PHP script:
#########################################################
$p1 = file_get_contents('bad.txt');
$p2 = preg_split("#\r?\n#", $p1, -1, PREG_SPLIT_NO_EMPTY);
$p3 = "~\b(". implode('|', $p2) . ")\b~i";
if(preg_match($p3, $value)) {return error;}
return true;
#########################################################
This also works, but throws a Json.parse error in the console.
For public text fields I use the Valid function and the following as a PHP script:
#########################################################
$p1 = file_get_contents('bad.txt');
$p2 = preg_split("#\r?\n#", $p1, -1, PREG_SPLIT_NO_EMPTY);
$p3 = "~\b(". implode('|', $p2) . ")\b~i";
if(preg_match($p3, $value)) {return error;}
return true;
#########################################################
This also works, but throws a Json.parse error in the console.
what is the "error" in the code ? the PHP should return a string (error message) or TRUE
Sorry:
-> return "Hier stimmt etwas nicht... Bitte prüfen!";
not
return error;
-> return "Hier stimmt etwas nicht... Bitte prüfen!";
not
return error;
Uncaught SyntaxError: JSON.parse: unterminated string at line 1 column 77 of the JSON data
You need to login to be able to post a reply.