switching from html to php versions