Hi guys,
It is working fine, and only allowing letters and numbers.
I want to a feature, so that it has to be between 3-20 charachters/numbers long.
if (!preg_match("/^[A-Za-z0-9]+$/i", $_POST['brugernavn'])){
$dosomething = '';
}
This is not working:
if (!preg_match("/^[A-Za-z0-9]{3-20}+$/i", $_POST['brugernavn']))