sicura di avere ben chiaro il rapporto fra javascript e php?
Tipo che php gira PRIMA, sul server, e javascript POI, sul browser?