You can do this via javascript (so if javascript is off, you won't be able to restrict it)
<input type="text" onkeyup="this.value = this.value.replace(/[^a-z]/, '')" />
This will restrict it to only a-z characters. Checkout regular expressions to see what you can do
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…