ma non è che l'errore è JS e non PHP? dove ti esce l'errore?