1) nn ho capito / un sempio please

2) usi l'attributo maxlenght=""

codice:
<form>
<input type="text" name="testo" MAXLENGTH="5" >
</form>