danado wrote:appears exactly that way in chrome and mozila:
... because you double clicked on the file in explorer? Yeah?
Or you named it *.html instead of *.php.
Or both of them. Both horribly wrong. You MUST use extension *.php and MUST NOT double click in explorer.
Last option, you use any IDE (like Dreamweaver) and did not configure it correctly - in that case, go for Dreamweaver boards or similar.