Posta il codice HTML come arriva al browser. Non il sorgente PHP.

Potrebbe esserci un errore di sintassi da qualche parte.