ciao vorrei che si aggiungesse ai caratteri consentiti il trattino sopra e quello sotto -_
Codice PHP:
if (!preg_match("/^[a-zA-Z0-9]{0,12}$/",$_POST['user'])) {
$errori = 1;
}
ciao vorrei che si aggiungesse ai caratteri consentiti il trattino sopra e quello sotto -_
Codice PHP:
if (!preg_match("/^[a-zA-Z0-9]{0,12}$/",$_POST['user'])) {
$errori = 1;
}
Codice PHP:
if (!preg_match("/^[a-zA-Z0-9\\-_]{0,12}$/",$_POST['user'])) {
$errori = 1;
}
grazie ok![]()