Check the source of the generated HTML page. I'm not sure if you need to escape the quotes in a here document.