Codice PHP:
if(strlen($valore_form) >= && strlen($valore_form) <= 10){operazioni ....}