Generate HTML for PHP