devi aggiungere al nome del campo le parentesi quadre:
codice:
name='quantita[]'