switch html to php