per questo ti dico che il problema secondo me sta nel file php e non in quello html.