switch from html to php