grazie mille!
un'ultima cosa: dopo aver legato l'evento al bottone, come faccio a far interagire Javascript e PHP?