grazie a te che hai postato anche il codice completo... anzi qualche moderatore secondo me lo dovrebbe mettere nei post in sticky per usi futuri.