Moving html to php