Complete switchover to PHP from HTML.

Hopefully this works. It's 3 AM, and I want whisky and sleep.