Generate HTML code from PHP