l'ho provato ora e sembra funzionare correttamente, hai copiato anche la parte html?
Regole del Forum